Interface CommandPermission

All Known Subinterfaces:
PredicatePermission<C>
All Known Implementing Classes:
AndPermission, OrPermission, Permission

@API(status=STABLE) public interface CommandPermission
A command permission representation.
  • Method Details

    • getPermissions

      @NonNull Collection<@NonNull CommandPermission> getPermissions()
      Get the permission nodes
      Returns:
      Permission nodes
    • toString

      String toString()
      Get a string representation of the permission
      Overrides:
      toString in class Object
      Returns:
      String representation of the permission node
    • or

      @API(status=STABLE, since="1.4.0") default @NonNull CommandPermission or(@NonNull CommandPermission other)
      Return a permission that matches either this permission or the other permission.
      Parameters:
      other - the other permission to test
      Returns:
      a new or permission
      Since:
      1.4.0
    • or

      @API(status=STABLE, since="1.4.0") default @NonNull CommandPermission or(@NonNull CommandPermission @NonNull ... other)
      Return a permission that matches either this permission or any of the other permissions.
      Parameters:
      other - the other permission to test
      Returns:
      a new or permission
      Since:
      1.4.0
    • and

      @API(status=STABLE, since="1.4.0") default @NonNull CommandPermission and(@NonNull CommandPermission other)
      Return a permission that matches this permission and the other permission.
      Parameters:
      other - the other permission to test
      Returns:
      a new and permission
      Since:
      1.4.0
    • and

      @API(status=STABLE, since="1.4.0") default @NonNull CommandPermission and(@NonNull CommandPermission @NonNull ... other)
      Return a permission that matches this permission and all of the other permissions.
      Parameters:
      other - the other permission to test
      Returns:
      a new and permission
      Since:
      1.4.0