SteamWar/SpigotCore
Archiviert
13
0

Fix SubCommand.getGuardChecker
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-11-24 17:40:49 +01:00
Ursprung 4eeabbe80e
Commit 200a1a4718

Datei anzeigen

@ -101,7 +101,7 @@ class SubCommand {
return localGuardChecker.getOrDefault(s, GUARD_FUNCTIONS.getOrDefault(s, null)); return localGuardChecker.getOrDefault(s, GUARD_FUNCTIONS.getOrDefault(s, null));
} }
GuardChecker current = localGuardChecker.getOrDefault(guard.value(), GUARD_FUNCTIONS.getOrDefault(guard.value(), null)); GuardChecker current = localGuardChecker.getOrDefault(guard.value(), GUARD_FUNCTIONS.getOrDefault(guard.value(), null));
if (guardChecker == null) { if (current == null) {
Bukkit.getLogger().log(Level.WARNING, () -> "The guard checker with name '" + guard.value() + "' is neither a local guard checker nor a global one"); Bukkit.getLogger().log(Level.WARNING, () -> "The guard checker with name '" + guard.value() + "' is neither a local guard checker nor a global one");
} }
return current; return current;