diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/PunishmentCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/PunishmentCommand.java index 8305b104..ec5015a3 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/PunishmentCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/PunishmentCommand.java @@ -90,13 +90,13 @@ public class PunishmentCommand { Player player = VelocityCore.getProxy().getPlayer(user.getUUID()).orElse(null); if (player != null) { String ip = IPSanitizer.getTrueAddress(player).getHostAddress(); - Chatter.disconnect(player).system(punishmentMessage(user, Punishment.PunishmentType.Ban)); for (BannedUserIPs banned : BannedUserIPs.get(ip)) { SteamwarUser bannedUser = SteamwarUser.byId(banned.getUserID()); if (bannedUser.isPunished(Punishment.PunishmentType.Ban) && bannedUser.getPunishment(Punishment.PunishmentType.Ban).getEndTime().before(time)) { bannedUser.punish(Punishment.PunishmentType.Ban, time, banReason, punisher.getId(), perma); } } + Chatter.disconnect(player).system(punishmentMessage(user, Punishment.PunishmentType.Ban)); if (!player.getUsername().startsWith(".")) { BannedUserIPs.banIP(user.getId(), ip); }