fix aliases not being registered
This commit is contained in:
parent
124e65a472
commit
00eb51595d
4 changed files with 7 additions and 4 deletions
|
|
@ -6,6 +6,8 @@ import org.bukkit.command.Command;
|
|||
import org.bukkit.command.CommandSender;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class BukkitKenCommand extends Command {
|
||||
|
||||
private final CommandNode<CommandSender, BukkitCommandContext> rootNode;
|
||||
|
|
@ -18,6 +20,7 @@ public class BukkitKenCommand extends Command {
|
|||
super(rootNode.getNames()[0]);
|
||||
this.rootNode = rootNode;
|
||||
this.commandManager = commandManager;
|
||||
this.setAliases(Arrays.asList(rootNode.getNames()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue