diff --git a/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java b/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java index c0c8d9a..a09a896 100644 --- a/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java +++ b/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java @@ -7,14 +7,18 @@ import org.bukkit.entity.Player; public class TestCommand extends SWCommand { public TestCommand() { + // Register this command as 'test' super("test"); } + // One Command, the first Parameter should be some kind of CommandSender @Register public void test(Player player) { } + // Another Command, subCommands can be implemented with the Register Annotation, + // you can Implement custom Mappers Annotation by @Mapper on a Parameter @Register({"two"}) public void testTwo(Player player, int i, @Mapper("Hello World") Material material) {