SPIGOT-4024: Improve interactions of Vanilla tab completion, and also reloads

This commit is contained in:
md_5
2018-07-21 11:20:38 +10:00
parent dbc6c660eb
commit e5d6f6b596
4 changed files with 35 additions and 22 deletions

View File

@@ -355,7 +355,7 @@ public final class CraftServer implements Server {
}
private void setVanillaCommands() {
CommandDispatcher dispatcher = console.getCommandDispatcher();
CommandDispatcher dispatcher = console.vanillaCommandDispatcher;
// Build a list of all Vanilla commands and create wrappers
for (CommandNode<CommandListenerWrapper> cmd : dispatcher.a().getRoot().getChildren()) {