SteamWar/BungeeCore
Archiviert
13
2

Fix Double Bans #434

Zusammengeführt
Lixfel hat 1 Commits von fix_double_bans nach master 2022-09-12 17:56:22 +02:00 zusammengeführt
Nur Änderungen aus Commit 02c81068e7 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -325,14 +325,14 @@ public class SteamwarUser {
ProxiedPlayer player = ProxyServer.getInstance().getPlayer(uuid);
if (player != null) {
updateBanIP(player.getAddress().getAddress().getHostAddress());
ChatSender.disconnect(player).system(punishmentMessage(punishment));
for (BannedUserIPs banned : BannedUserIPs.get(player.getAddress().getAddress().getHostAddress())) {
SteamwarUser bannedUser = SteamwarUser.get(banned.getUserID());
if (isPunished(punishment) && bannedUser.getPunishment(punishment).getEndTime().before(time)) {
if (bannedUser.isPunished(punishment) && bannedUser.getPunishment(punishment).getEndTime().before(time)) {
bannedUser.punish(punishment, time, banReason, from, perma);
}
}
updateBanIP(player.getAddress().getAddress().getHostAddress());
} else {
updateBanIP("");
}