geforkt von Mirrors/Paper
SPIGOT-2369: Tab completing non existant command
Dieser Commit ist enthalten in:
Ursprung
5a55e13868
Commit
5fc80916f5
@ -24,7 +24,7 @@ public class ConsoleCommandCompleter implements Completer {
|
||||
protected List<String> evaluate() {
|
||||
List<String> offers = server.getCommandMap().tabComplete(server.getConsoleSender(), buffer);
|
||||
|
||||
TabCompleteEvent tabEvent = new TabCompleteEvent(server.getConsoleSender(), buffer, offers);
|
||||
TabCompleteEvent tabEvent = new TabCompleteEvent(server.getConsoleSender(), buffer, (offers == null) ? Collections.EMPTY_LIST : offers);
|
||||
server.getPluginManager().callEvent(tabEvent);
|
||||
|
||||
return tabEvent.isCancelled() ? Collections.EMPTY_LIST : tabEvent.getCompletions();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren