bukkit: Use command name instead of label to get node

This commit is contained in:
Jason Penilla 2021-09-23 22:30:27 -07:00 committed by Jason
parent 7a5efbd6da
commit 8399bce8d2

View file

@ -207,7 +207,7 @@ final class BukkitCommand<C> extends org.bukkit.command.Command implements Plugi
}
private CommandTree.Node<CommandArgument<C, ?>> namedNode() {
return this.manager.getCommandTree().getNamedNode(this.getLabel());
return this.manager.getCommandTree().getNamedNode(this.getName());
}
}