Interface PermissionSubject
- All Known Subinterfaces:
CommandSource, ConsoleCommandSource, Player
public interface PermissionSubject
Represents a object that has a set of queryable permissions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault PermissionCheckerGets the permission checker for the subject.getPermissionValue(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 Details
-
hasPermission
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
-
getPermissionChecker
Gets the permission checker for the subject.- Returns:
- subject's permission checker
-