public void removePenalty(Penalty penalty, Player player) { if (Penalty.BAN == penalty.getType()) { player.setBanInfo(null); } penalty.setActive(false); penaltyDAO.save(penalty); checkNoticeStatus(penalty, player); }
public void addPenalty(Penalty penalty, Player player) { if (Penalty.BAN == penalty.getType()) { player.setBanInfo(penalty.getCreated()); } penalty.setActive(true); penaltyDAO.save(penalty); checkNoticeStatus(penalty, player); }