T - the identifier type of the holderpublic interface HeldPermission<T>
PermissionHolder and a permission.| Modifier and Type | Method and Description |
|---|---|
@NonNull Node |
asNode()
Converts this permission into a Node
|
@NonNull ContextSet |
getContexts()
Gets the extra context for the permission.
|
@NonNull OptionalLong |
getExpiry()
Gets the time in unix time when the permission will expire
|
T |
getHolder()
Gets the holder of the permission
|
@NonNull String |
getPermission()
Gets the permission being held
|
@NonNull Optional<String> |
getServer()
Gets the server where the permission is held
|
boolean |
getValue()
Gets the value of the permission
|
@NonNull Optional<String> |
getWorld()
Gets the world where the permission is held
|
T getHolder()
@NonNull String getPermission()
boolean getValue()
@NonNull Optional<String> getServer()
@NonNull Optional<String> getWorld()
@NonNull OptionalLong getExpiry()
@NonNull ContextSet getContexts()
@NonNull Node asNode()