SteamWar/SpigotCore
Archiviert
13
0

Fix SWCommandUtils.createEnumMapper
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-10 18:14:06 +01:00
Ursprung 7e96e4c2d5
Commit afa80082b3

Datei anzeigen

@ -247,7 +247,7 @@ public class SWCommandUtils {
public static TypeMapper<Enum<?>> createEnumMapper(Class<Enum<?>> enumClass) { public static TypeMapper<Enum<?>> createEnumMapper(Class<Enum<?>> enumClass) {
Enum<?>[] enums = enumClass.getEnumConstants(); 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<?>>() { return new TypeMapper<Enum<?>>() {
@Override @Override
public Enum<?> map(CommandSender commandSender, String[] previousArguments, String s) { public Enum<?> map(CommandSender commandSender, String[] previousArguments, String s) {