Package dev.jorel.commandapi
Class CommandPermission
java.lang.Object
dev.jorel.commandapi.CommandPermission
A representation of permission nodes for commands. Represents permission
nodes, being op and having all permissions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandPermissionCommand can be run with no permissionsstatic final CommandPermissionA player that has to be an operator to run a command -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CommandPermissionfromString(String permission) Generates a new CommandPermission from a permission nodeReturns the custom permission in string form if setinthashCode()booleanReturns if the permission is negatedtoString()Returns a human-readable string of this CommandPermission
-
Field Details
-
NONE
Command can be run with no permissions -
OP
A player that has to be an operator to run a command
-
-
Method Details
-
fromString
Generates a new CommandPermission from a permission node- Parameters:
permission- the permission node- Returns:
- a new CommandPermission
-
equals
-
hashCode
-
toString
-
getPermission
-
isNegated
public boolean isNegated()Returns if the permission is negated- Returns:
- the permission's negation state
-