Fix console completions on invalid commands (#7603)

This commit is contained in:
Jake Potrebic
2024-09-27 11:05:15 -07:00
parent d89b0fb649
commit eba36b62bd
3 changed files with 7 additions and 19 deletions

View File

@@ -99,7 +99,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
@@ -0,0 +0,0 @@ public class ConsoleCommandCompleter implements Completer {
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();
+ // Async Tab Complete
+ final com.destroystokyo.paper.event.server.AsyncTabCompleteEvent event =
+ new com.destroystokyo.paper.event.server.AsyncTabCompleteEvent(server.getConsoleSender(), buffer, true, null);