SteamWar/SpigotCore
Archiviert
13
0

Is Punished #152

Zusammengeführt
YoyoNow hat 2 Commits von is_punished nach master 2021-12-30 20:15:04 +01:00 zusammengeführt
Nur Änderungen aus Commit 5fe45ff161 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

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