Dieser Commit ist enthalten in:
Ursprung
0d573557b8
Commit
9596309dc9
@ -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);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren