SteamWar/SpigotCore
Archiviert
13
0

Is Punished
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Chaoscaot 2021-12-30 20:13:18 +01:00
Ursprung cff70e70c2
Commit 5fe45ff161

Datei anzeigen

@ -53,7 +53,7 @@ public class Punishment {
public static boolean isPunished(SteamwarUser user, Punishment.PunishmentType type, Consumer<Punishment> callback) { public static boolean isPunished(SteamwarUser user, Punishment.PunishmentType type, Consumer<Punishment> callback) {
Punishment punishment = Punishment.getPunishmentOfPlayer(user.getId(), type); Punishment punishment = Punishment.getPunishmentOfPlayer(user.getId(), type);
if(punishment == null) { if(punishment == null || punishment.isCurrent()) {
return false; return false;
} else { } else {
callback.accept(punishment); callback.accept(punishment);