mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Fix time test for node expiry times
This commit is contained in:
parent
f45c0caa45
commit
069c76c53a
@ -124,7 +124,7 @@ public class DataConstraints {
|
||||
return true;
|
||||
};
|
||||
|
||||
public static final Predicate<Long> TIME_TEST = DateUtil::shouldExpire;
|
||||
public static final Predicate<Long> TIME_TEST = unixTime -> !DateUtil.shouldExpire(unixTime);
|
||||
|
||||
public static final Predicate<String> SERVER_NAME_TEST = s -> {
|
||||
if (s.length() <= 0 || s.length() > MAX_SERVER_LENGTH) {
|
||||
|
Loading…
Reference in New Issue
Block a user