fix aliases not being registered

This commit is contained in:
kento2 2026-04-16 21:53:59 +02:00
parent 124e65a472
commit 00eb51595d
4 changed files with 7 additions and 4 deletions

View file

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