Package net.luckperms.api.model
Interface PermissionHolder.Identifier
- Enclosing interface:
- PermissionHolder
public static interface PermissionHolder.Identifier
Represents a way to identify distinct
PermissionHolders.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets thePermissionHolders generic name.getType()Gets the type of thePermissionHolder.
-
Field Details
-
USER_TYPE
- See Also:
-
GROUP_TYPE
- See Also:
-
-
Method Details
-
getName
Gets thePermissionHolders generic name.The result of this method is guaranteed to be a unique identifier for distinct instances of the same type of object.
For
Users, this method returns astringrepresentation of the usersunique id.For
Groups, this method returns thegroup name.The
User.getUniqueId(),User.getUsername()andGroup.getName()methods define a "tighter" specification for obtaining object identifiers.- Returns:
- the identifier for this object. Either a uuid string or name.
-
getType
Gets the type of thePermissionHolder.- Returns:
- the type
-