mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-05 12:02:53 +00:00
Fix bans not expiring (FS-147)
This commit is contained in:
parent
f5c08cd28b
commit
561c192c27
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ public class Ban
|
|||
|
||||
public boolean isExpired()
|
||||
{
|
||||
return hasExpiry() && expiryUnix < FUtil.getUnixTime();
|
||||
return hasExpiry() && FUtil.getUnixDate(expiryUnix).before(new Date(FUtil.getUnixTime()));
|
||||
}
|
||||
|
||||
public String bakeKickMessage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue