Interface PermissionSubject
-
- All Known Subinterfaces:
CommandSource,ConsoleCommandSource,Player
public interface PermissionSubjectRepresents a object that has a set of queryable permissions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PermissionCheckergetPermissionChecker()Gets the permission checker for the subject.TristategetPermissionValue(String permission)Gets the subjects setting for a particular permission.default booleanhasPermission(String permission)Determines whether or not the subject has a particular permission.
-
-
-
Method Detail
-
hasPermission
default boolean hasPermission(String permission)
Determines whether or not the subject has a particular permission.- Parameters:
permission- the permission to check for- Returns:
- whether or not the subject has the permission
-
getPermissionValue
Tristate getPermissionValue(String permission)
Gets the subjects setting for a particular permission.- Parameters:
permission- the permission- Returns:
- the value the permission is set to
-
getPermissionChecker
default PermissionChecker getPermissionChecker()
Gets the permission checker for the subject.- Returns:
- subject's permission checker
-
-