Fix TestCommand
Dieser Commit ist enthalten in:
Ursprung
09e6f0baa8
Commit
9773b9d7ea
@ -7,14 +7,18 @@ import org.bukkit.entity.Player;
|
|||||||
public class TestCommand extends SWCommand {
|
public class TestCommand extends SWCommand {
|
||||||
|
|
||||||
public TestCommand() {
|
public TestCommand() {
|
||||||
|
// Register this command as 'test'
|
||||||
super("test");
|
super("test");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// One Command, the first Parameter should be some kind of CommandSender
|
||||||
@Register
|
@Register
|
||||||
public void test(Player player) {
|
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"})
|
@Register({"two"})
|
||||||
public void testTwo(Player player, int i, @Mapper("Hello World") Material material) {
|
public void testTwo(Player player, int i, @Mapper("Hello World") Material material) {
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren