Class User


public class User extends PermissionHolder
  • Constructor Details

  • Method Details

    • getUniqueId

      public UUID getUniqueId()
    • getUsername

      public Optional<String> getUsername()
    • getFormattedDisplayName

      public net.kyori.adventure.text.Component getFormattedDisplayName()
      Description copied from class: PermissionHolder
      Gets the formatted display name of this permission holder (for use in commands, etc)
      Specified by:
      getFormattedDisplayName in class PermissionHolder
      Returns:
      the holders formatted display name
    • getPlainDisplayName

      public String getPlainDisplayName()
      Description copied from class: PermissionHolder
      Gets a display name for this permission holder, without any formatting.
      Specified by:
      getPlainDisplayName in class PermissionHolder
      Returns:
      the display name
    • getQueryOptions

      public net.luckperms.api.query.QueryOptions getQueryOptions()
      Description copied from class: PermissionHolder
      Gets the most appropriate query options available at the time for the holder.
      Specified by:
      getQueryOptions in class PermissionHolder
      Returns:
      query options
    • getApiProxy

      public ApiUser getApiProxy()
    • getCachedData

      public UserCachedDataManager getCachedData()
      Description copied from class: PermissionHolder
      Gets the holders cached data
      Specified by:
      getCachedData in class PermissionHolder
      Returns:
      the holders cached data
    • getPrimaryGroup

      public PrimaryGroupHolder getPrimaryGroup()
    • setUsername

      public boolean setUsername(String name, boolean weak)
      Sets the users name
      Parameters:
      name - the name to set
      weak - if true, the value will only be updated if a value hasn't been set previously.
      Returns:
      true if a change was made
    • getType

      public HolderType getType()
      Description copied from class: PermissionHolder
      Returns the type of this PermissionHolder.
      Specified by:
      getType in class PermissionHolder
      Returns:
      this holders type
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object