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; }