12
0

Fix TestCommand

Dieser Commit ist enthalten in:
yoyosource 2021-03-25 13:38:14 +01:00
Ursprung 09e6f0baa8
Commit 9773b9d7ea

Datei anzeigen

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