Merge branch 'tfm-bugfix-001' of https://github.com/AtlasMediaGroup/TotalFreedomMod into tfm-bugfix-001

This commit is contained in:
Paldiu 2021-03-21 14:02:51 -05:00
commit 5837b05a35
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<groupId>me.totalfreedom</groupId>
<artifactId>TotalFreedomMod</artifactId>
<version>2021.02-RC03</version>
<version>2021.02</version>
<packaging>jar</packaging>
<properties>

View File

@ -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()

View File

@ -612,7 +612,7 @@ public class FUtil
public static long getUnixTime()
{
return Instant.now().getEpochSecond();
return Instant.now().toEpochMilli();
}
public static long getUnixTime(Date date)