Dieser Commit ist enthalten in:
Ursprung
7e96e4c2d5
Commit
afa80082b3
@ -247,7 +247,7 @@ public class SWCommandUtils {
|
||||
|
||||
public static TypeMapper<Enum<?>> createEnumMapper(Class<Enum<?>> enumClass) {
|
||||
Enum<?>[] enums = enumClass.getEnumConstants();
|
||||
List<String> strings = Arrays.stream(enums).map(Enum::name).collect(Collectors.toList());
|
||||
List<String> strings = Arrays.stream(enums).map(Enum::name).map(String::toLowerCase).collect(Collectors.toList());
|
||||
return new TypeMapper<Enum<?>>() {
|
||||
@Override
|
||||
public Enum<?> map(CommandSender commandSender, String[] previousArguments, String s) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren