bukkit: Use name from root argument for consistency with rest of BukkitCommand

shouldn't actually make any difference
This commit is contained in:
Jason Penilla 2021-09-23 22:30:27 -07:00 committed by Jason
parent 8399bce8d2
commit 9c804addbd

View file

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