From 5002b07748676fc344a264834ef6d8c24e90d605 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 23 Dec 2021 17:38:08 +0100 Subject: [PATCH] Fix stack overflow Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/sql/SteamwarUser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/sql/SteamwarUser.java b/src/de/steamwar/bungeecore/sql/SteamwarUser.java index 5e9ddcea..ea73ffd6 100644 --- a/src/de/steamwar/bungeecore/sql/SteamwarUser.java +++ b/src/de/steamwar/bungeecore/sql/SteamwarUser.java @@ -294,7 +294,7 @@ public class SteamwarUser { player.disconnect(punishmentMessage(punishment, player)); for (BannedUserIPs banned : BannedUserIPs.get(player.getAddress().getAddress().getHostAddress())) { SteamwarUser bannedUser = SteamwarUser.get(banned.getUserID()); - if (isPunished(punishment) && banned.getTimestamp().before(time)) { + if (isPunished(punishment) && bannedUser.getPunishment(punishment).getEndTime().before(time)) { bannedUser.punish(punishment, time, banReason, from, perma); } }