Actually add IPs to punishment

This commit is contained in:
2022-04-02 18:03:58 -05:00
parent 0c6d90e653
commit 470f652e0b
7 changed files with 13 additions and 3 deletions

View File

@ -58,6 +58,7 @@ public class FreezeCMD extends PlexCommand
punishment.setEndDate(date.plusMinutes(5));
punishment.setType(PunishmentType.FREEZE);
punishment.setPunishedUsername(player.getName());
punishment.setIp(player.getAddress().getAddress().getHostAddress().trim());
punishment.setReason("");
plugin.getPunishmentManager().doPunishment(punishedPlayer, punishment);