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

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-07-21 11:20:38 +10:00
parent ee4832c2ce
commit 5bc15c40d8
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()) {