Interface PermissionContainer

All Known Subinterfaces:
MutablePermissionTree, PermissionTree
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PermissionContainer
A generic permission container.
  • Field Details

    • PERMISSION_PATTERN

      static final Pattern PERMISSION_PATTERN
      Regex pattern used to validate permission strings.

      Notes:

      Permission strings are composed of a series of nodes separated by dots with alphanumeric characters and minus signs, such as "plugin.command".
      A parent node is always overridden by a child node, such as "plugin.command" overriding "plugin".
      Wildcards are also allowed, but they currently have the same effect as a normal node, such as "plugin.command.*" equals "plugin.command".
      The only relevant use of wildcards is the root permission "*". It allows you to set a default value for all permissions.
  • Method Details