Interface Faction.Permissions

All Known Implementing Classes:
MemoryFaction.Permissions
Enclosing interface:
Faction

public static interface Faction.Permissions
  • Method Details

    • selectors

      List<PermSelector> selectors()
      Gets an immutable, ordered list of the selectors tracked.
      Returns:
      the selectors
    • moveSelectorUp

      void moveSelectorUp(PermSelector selector)
      Moves the given selector up in the order.
      Parameters:
      selector - selector to move up
    • moveSelectorDown

      void moveSelectorDown(PermSelector selector)
      Moves the given selector down in the order.
      Parameters:
      selector - selector to move down
    • get

      Gets a selector's perms.
      Parameters:
      selector - selector to get
      Returns:
      perms
      Throws:
      IllegalArgumentException - if this selector is not tracked
    • has

      boolean has(PermSelector selector)
      Gets if a given selector is tracked.
      Parameters:
      selector - selector
      Returns:
      true if tracked
    • add

      Adds a selector. If an already added selector is provided, functions the same as get(PermSelector).
      Parameters:
      selector - selector
      Returns:
      the selector perms for immediate editing
    • remove

      void remove(PermSelector selector)
      Removes a selector.
      Parameters:
      selector - selector to remove
    • clear

      void clear()
      Clears everything.