From aab7cbb36377ceb6987bdf9bfd37f869bd2bae2f Mon Sep 17 00:00:00 2001 From: Chaos Date: Sat, 29 Jan 2022 15:01:31 +0100 Subject: [PATCH] Fix --- SpigotCore_Main/src/de/steamwar/sql/Punishment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/Punishment.java b/SpigotCore_Main/src/de/steamwar/sql/Punishment.java index 85ec258..2607823 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/Punishment.java +++ b/SpigotCore_Main/src/de/steamwar/sql/Punishment.java @@ -53,7 +53,7 @@ public class Punishment { public static boolean isPunished(SteamwarUser user, Punishment.PunishmentType type, Consumer callback) { Punishment punishment = Punishment.getPunishmentOfPlayer(user.getId(), type); - if(punishment == null || punishment.isCurrent()) { + if(punishment == null || !punishment.isCurrent()) { return false; } else { callback.accept(punishment);