SteamWar/SpigotCore
Archiviert
13
0

Fix TestCommand

Dieser Commit ist enthalten in:
yoyosource 2021-03-30 08:24:16 +02:00
Ursprung 6ac208dc56
Commit db1198bdd9

Datei anzeigen

@ -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());