🧔Parent commands
public MyCommand(CommandConfiguration commandConfiguration) {
super("minigame.admin", true, true, true, commandConfiguration);
} public MyCommand(CommandConfiguration commandConfiguration) {
super("minigame.admin", true, true, true, commandConfiguration);
} public MyCommand(CommandConfiguration commandConfiguration) {
super("minigame.admin", true, true, commandConfiguration);
} public class MyCommand extends ParentCommand {
public MyCommand (CommandConfiguration commandConfiguration) {
super("command.admin", true, true, true, commandConfiguration);
addSubCommand(new MySubCommand());
}
@Override
protected boolean executeCommand(CommandSender sender, String[] args) {
Player player = (Player) sender;
player.sendMessage("test");
return false;
}
@Override
public String getName() {
return "mycommand";
}
}