Fix error extracting command label in AsyncTabComplete handler

This commit is contained in:
Luck committed 2020-01-16 17:55:03 +00:00
1 parent abad672bef
commit a050a2604f
1 file changed
+1 -1
@@ -63,7 +63,7 @@ public class BukkitAsyncCommandExecutor extends BukkitCommandExecutor implements
return;
}
String commandLabel = buffer.substring(1, firstSpace);
String commandLabel = buffer.substring(0, firstSpace);
Command command = this.plugin.getBootstrap().getServer().getCommandMap().getCommand(commandLabel);
if (command != this.command) {
return;