Archiviert
1
0

Merge branch 'FixTablist'

Dieser Commit ist enthalten in:
Lixfel 2021-12-23 17:38:33 +01:00
Commit c6900a2521

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);
} }
} }