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.
Something capable of checking if a
CommandSource has a permission-
Method Summary
Modifier and TypeMethodDescriptionhasPermission(CommandSource source, String permission) Checks if the given source has a permission
-
Method Details
-
hasPermission
Checks if the given source has a permission- Parameters:
source- theCommandSourcewhose permissions should be queriedpermission- the permission node to check- Returns:
- a
TriStateas the value of the node.TriState.NOT_SETgenerally means that the permission node itself was not found, and the source does not have such permission.TriState.TRUEandTriState.FALSErepresent explicitly set values.
-