1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-02 19:02:33 +02:00

bug fixes

This commit is contained in:
Luck
2016-08-28 17:43:02 +01:00
parent 0831585a27
commit 9f5e194a6e
21 changed files with 71 additions and 59 deletions

View File

@@ -151,20 +151,26 @@ public interface Node extends Map.Entry<String, Boolean> {
/**
* @return the time in Unix time when this node will expire
* @throws IllegalStateException if the node is not temporary
*/
long getExpiryUnixTime();
/**
* @return the {@link Date} when this node will expire
* @throws IllegalStateException if the node is not temporary
*/
Date getExpiry();
/**
* @return the number of seconds until this permission will expire
* @throws IllegalStateException if the node is not temporary
*/
long getSecondsTilExpiry();
/**
* Return true if the node has expired.
* This also returns false if the node is not temporary
*
* @return true if this node has expired
*/
boolean hasExpired();