Fix error extracting command label in AsyncTabComplete handler

This commit is contained in:
Luck 2020-01-16 17:55:03 +00:00
parent abad672bef
commit a050a2604f
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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;