SteamWar/SpigotCore
Archiviert
13
0

CommandFramework3 #94

Manuell gemergt
Zeanon hat 71 Commits von CommandFramework3 nach master 2021-03-30 21:15:40 +02:00 zusammengeführt
Nur Änderungen aus Commit 9773b9d7ea werden angezeigt - Alle Commits anzeigen

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