Interface PrimaryGroupHolder

All Known Implementing Classes:
PrimaryGroupHolder.AllParentsByWeight, PrimaryGroupHolder.ParentsByWeight, PrimaryGroupHolder.Stored

public interface PrimaryGroupHolder
Calculates and caches a User's "primary group"
  • Method Details

    • calculateValue

      String calculateValue(net.luckperms.api.query.QueryOptions queryOptions)
      Gets the name of the primary group, or null.
      Parameters:
      queryOptions - the query options to lookup with
      Returns:
      the name of the primary group, or null.
    • getStoredValue

      Optional<String> getStoredValue()
      Gets the primary group which is stored against the user's data.
      Returns:
      the stored value
    • setStoredValue

      void setStoredValue(String value)
      Sets the primary group which is stored against the user's data.
      Parameters:
      value - the new stored value