SteamWar/SpigotCore
Archiviert
13
0

Hotfix SWCommandUtils
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-08 20:36:36 +01:00
Ursprung 0d573557b8
Commit 9596309dc9

Datei anzeigen

@ -163,11 +163,7 @@ public class SWCommandUtils {
GUARD_FUNCTIONS.putIfAbsent(name, guardChecker);
}
public static TypeMapper<String> createMapper(String value) {
return createMapper((s) -> value.equals(s) ? value : null, s -> Collections.singletonList(value));
}
public static TypeMapper<String> createMapper(String[] values) {
public static TypeMapper<String> createMapper(String... values) {
List<String> strings = Arrays.asList(values);
return createMapper((s) -> strings.contains(s) ? s : null, s -> strings);
}