CommandFramework3 #94
@ -37,7 +37,7 @@ public class TestCommand extends SWCommand {
|
||||
}
|
||||
|
||||
// One Help Command, the first Parameter should be some kind of CommandSender
|
||||
// The second argument can only be a varAgrs string of what arguments was tried to map
|
||||
// The second argument can only be a varAgrs string of what arguments were tried to map
|
||||
@Register(help = true)
|
||||
public void testHelp(Player player, String... args) {
|
||||
player.sendMessage("This is your help message");
|
||||
@ -66,7 +66,7 @@ public class TestCommand extends SWCommand {
|
||||
.map(Material::name)
|
||||
.map(String::toLowerCase)
|
||||
.collect(Collectors.toList());
|
||||
return new TypeMapper<>() {
|
||||
return new TypeMapper<Material>() {
|
||||
@Override
|
||||
public Material map(String s) {
|
||||
return Material.valueOf(s.toUpperCase());
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren