Interface PermissionHolder
- All Known Subinterfaces:
SquirtgunPlayer,SquirtgunUser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An entity capable of holding permissions and executing commands.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(String permission)Gets whether the target holds the provided permission.
-
Method Details
-
hasPermission
Gets whether the target holds the provided permission.- Parameters:
permission- the permission to check- Returns:
- if the target holds the given permission
-