SteamWar/BungeeCore
Archiviert
13
2

Fix stack overflow
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-12-23 17:38:08 +01:00
Ursprung 39c7254963
Commit 5002b07748

Datei anzeigen

@ -294,7 +294,7 @@ public class SteamwarUser {
player.disconnect(punishmentMessage(punishment, player)); player.disconnect(punishmentMessage(punishment, player));
for (BannedUserIPs banned : BannedUserIPs.get(player.getAddress().getAddress().getHostAddress())) { for (BannedUserIPs banned : BannedUserIPs.get(player.getAddress().getAddress().getHostAddress())) {
SteamwarUser bannedUser = SteamwarUser.get(banned.getUserID()); 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); bannedUser.punish(punishment, time, banReason, from, perma);
} }
} }