mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-07-23 06:03:34 +00:00
fix 24 hour bans
This commit is contained in:
parent
ac6e58ff9e
commit
f8304aecd7
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue