Interface User
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.luckperms.api.model.PermissionHolder
PermissionHolder.Identifier -
Method Summary
Modifier and TypeMethodDescriptionGets the users current primary group.Gets the users unique IDGets the users usernamesetPrimaryGroup(@NonNull String group) Sets a users primary group.Methods inherited from interface net.luckperms.api.model.PermissionHolder
auditTemporaryNodes, data, getCachedData, getData, getDistinctNodes, getFriendlyName, getIdentifier, getInheritedGroups, getNodes, getNodes, getQueryOptions, resolveDistinctInheritedNodes, resolveInheritedNodes, resolveInheritedNodes, transientData
-
Method Details
-
getUniqueId
-
getUsername
-
getPrimaryGroup
Gets the users current primary group.The result of this method depends on which method is configured for primary group calculation. It may not be the same as any value set through
setPrimaryGroup(String).- Returns:
- the users primary group
-
setPrimaryGroup
Sets a users primary group.This modifies the "stored value" for the users primary group, which may or may not actually take effect, depending on how the platform is calculating primary groups.
- Parameters:
group- the new primary group- Returns:
- if the change was applied successfully
- Throws:
IllegalStateException- if the user is not a member of that groupNullPointerException- if the group is null
-