Samyocord
New Member
Hello,
so I started getting into Nukkit-Plugin-Development. Now I've tried to add more commands than one in multiple classes.
Here is the commands-section of my plugin.yml:
This would be the register in the main class:
The classes for the commands all extend the Command-Class and I've also tried adding a Message when the command is triggered, but no luck.
Hope you can help me.
Thanks,
Samyocord
so I started getting into Nukkit-Plugin-Development. Now I've tried to add more commands than one in multiple classes.
Here is the commands-section of my plugin.yml:
Code:
commands:
random:
description: Wähle einen zufälligen Spieler
addwarp:
description: Fuege einen Warp hinzu
warp:
description: Teleportiere dich zu einem Warp
sudo:
description: Einen Spieler zwingen etwas einzugeben
Code:
getServer().getCommandMap().register("random", new RandomPlayer("random"));
getServer().getCommandMap().register("addwarp", new AddWarpCMD("addwarp"));
getServer().getCommandMap().register("warp", new WarpCMD("warp"));
getServer().getCommandMap().register("sudo", new SudoCMD("sudo"))
Hope you can help me.
Thanks,
Samyocord