Class PermissionGroup

java.lang.Object
com.github.darksoulq.abyssallib.server.permission.PermissionHolder
com.github.darksoulq.abyssallib.server.permission.PermissionGroup

public class PermissionGroup extends PermissionHolder
Represents a group that can contain permissions and be inherited by users or other groups.
  • Constructor Details

    • PermissionGroup

      public PermissionGroup(String id)
      Constructs a group with the specified ID.
      Parameters:
      id - The group identifier.
  • Method Details

    • getId

      public String getId()
      Gets the group identifier.
      Returns:
      The ID string.
    • getWeight

      public int getWeight()
      Gets the weight of this group.
      Returns:
      The integer weight.
    • setWeight

      public void setWeight(int weight)
      Sets the group weight and invalidates the cache.
      Parameters:
      weight - The new weight.
    • save

      public void save()
      Triggers a save operation through the global permission manager.
      Specified by:
      save in class PermissionHolder