Fix console completions on invalid commands (#7603)
This commit is contained in:
parent
d89b0fb649
commit
eba36b62bd
3 changed files with 7 additions and 19 deletions
|
@ -534,7 +534,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
- public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) {
|
||||
+ public void complete(LineReader reader, ParsedLine line, List<Candidate> candidates) {
|
||||
+ final CraftServer server = this.server.server;
|
||||
+ final String buffer = line.line();
|
||||
+ final String buffer = "/" + line.line();
|
||||
+ // Paper end
|
||||
Waitable<List<String>> waitable = new Waitable<List<String>>() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue