mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-08-03 18:28:48 +00:00
Fix bans not expiring (FS-147)
This commit is contained in:
@@ -169,7 +169,7 @@ public class Ban
|
|||||||
|
|
||||||
public boolean isExpired()
|
public boolean isExpired()
|
||||||
{
|
{
|
||||||
return hasExpiry() && expiryUnix < FUtil.getUnixTime();
|
return hasExpiry() && FUtil.getUnixDate(expiryUnix).before(new Date(FUtil.getUnixTime()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String bakeKickMessage()
|
public String bakeKickMessage()
|
||||||
|
Reference in New Issue
Block a user