this codebase is a mess

This commit is contained in:
2022-02-05 14:43:49 -06:00
parent eebb34cd1c
commit d8a8f33425
5 changed files with 12 additions and 9 deletions

View File

@ -37,7 +37,7 @@ public class FreezeCMD extends PlexCommand
Punishment punishment = new Punishment(UUID.fromString(punishedPlayer.getUuid()), getUUID(sender));
punishment.setCustomTime(false);
Date date = new Date();
punishment.setEndDate(DateUtils.addDays(date, 1));
punishment.setEndDate(DateUtils.addMinutes(date, 5));
punishment.setType(PunishmentType.FREEZE);
punishment.setPunishedUsername(player.getName());
punishment.setReason("");