From f8304aecd751ecd1b584f7244d08fca11e098234 Mon Sep 17 00:00:00 2001 From: Seth <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Tue, 29 Sep 2020 23:54:17 -0700 Subject: [PATCH] fix 24 hour bans --- .../java/me/totalfreedom/totalfreedommod/banning/Ban.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/banning/Ban.java b/src/main/java/me/totalfreedom/totalfreedommod/banning/Ban.java index 0dc1e56e..a5811b34 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/banning/Ban.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/banning/Ban.java @@ -71,6 +71,10 @@ public class Ban dedupeIps(); this.by = by; this.at = at; + if (expire == null) + { + expire = FUtil.parseDateOffset("24h"); + } this.expiryUnix = FUtil.getUnixTime(expire); this.reason = reason; }