Interface PermissionChecker

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 PermissionChecker
Something capable of checking if a CommandSource has a permission
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull TriState
    hasPermission(@NonNull CommandSource source, @NonNull String permission)
    Checks if the given source has a permission
  • Method Details

    • hasPermission

      @NonNull TriState hasPermission(@NonNull CommandSource source, @NonNull String permission)
      Checks if the given source has a permission
      Parameters:
      source - the CommandSource whose permissions should be queried
      permission - the permission node to check
      Returns:
      a TriState as the value of the node. TriState.NOT_SET generally means that the permission node itself was not found, and the source does not have such permission. TriState.TRUE and TriState.FALSE represent explicitly set values.