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 CommandPermissionCommand can be run with no permissionsstatic 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 nodeinthashCode()toString()Returns a human-readable string of this CommandPermission
-
Field Details
-
OP
A player that has to be an operator to run a command -
NONE
Command can be run with no permissions
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
fromString
Generates a new CommandPermission from a permission node- Parameters:
permission- the permission node- Returns:
- a new CommandPermission
-
toString
Returns a human-readable string of this CommandPermission
-