Package me.lucko.luckperms.common.model
Class User
java.lang.Object
me.lucko.luckperms.common.model.PermissionHolder
me.lucko.luckperms.common.model.User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the holders cached datanet.kyori.adventure.text.ComponentGets the formatted display name of this permission holder (for use in commands, etc)Gets a display name for this permission holder, without any formatting.net.luckperms.api.query.QueryOptionsGets the most appropriate query options available at the time for the holder.getType()Returns the type of this PermissionHolder.inthashCode()booleansetUsername(String name, boolean weak) Sets the users nametoString()Methods inherited from class me.lucko.luckperms.common.model.PermissionHolder
accumulateMeta, accumulateMeta, auditTemporaryNodes, clearNodes, exportPermissions, getData, getIdentifier, getInheritanceComparator, getOwnInheritanceNodes, getOwnNodes, getOwnNodes, getOwnNodesSorted, getPlugin, getWeight, getWeightResult, hasNode, invalidateCache, loadNodesFromStorage, mergeNodes, normalData, removeIf, resolveInheritanceTree, resolveInheritedNodes, resolveInheritedNodes, resolveInheritedNodesSorted, setNode, setNode, setNodes, setNodes, transientData, unsetNode, unsetNode
-
Constructor Details
-
User
-
-
Method Details
-
getUniqueId
-
getUsername
-
getFormattedDisplayName
public net.kyori.adventure.text.Component getFormattedDisplayName()Description copied from class:PermissionHolderGets the formatted display name of this permission holder (for use in commands, etc)- Specified by:
getFormattedDisplayNamein classPermissionHolder- Returns:
- the holders formatted display name
-
getPlainDisplayName
Description copied from class:PermissionHolderGets a display name for this permission holder, without any formatting.- Specified by:
getPlainDisplayNamein classPermissionHolder- Returns:
- the display name
-
getQueryOptions
public net.luckperms.api.query.QueryOptions getQueryOptions()Description copied from class:PermissionHolderGets the most appropriate query options available at the time for the holder.- Specified by:
getQueryOptionsin classPermissionHolder- Returns:
- query options
-
getApiProxy
-
getCachedData
Description copied from class:PermissionHolderGets the holders cached data- Specified by:
getCachedDatain classPermissionHolder- Returns:
- the holders cached data
-
getPrimaryGroup
-
setUsername
Sets the users name- Parameters:
name- the name to setweak- if true, the value will only be updated if a value hasn't been set previously.- Returns:
- true if a change was made
-
getType
Description copied from class:PermissionHolderReturns the type of this PermissionHolder.- Specified by:
getTypein classPermissionHolder- Returns:
- this holders type
-
equals
-
hashCode
public int hashCode() -
toString
-