CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
A representation of permission nodes for commands. More...
Public Member Functions | |
boolean | equals (Object obj) |
int | hashCode () |
String | toString () |
Returns a human-readable string of this CommandPermission. More... | |
Optional< String > | getPermission () |
Returns the custom permission in string form if set. More... | |
boolean | isNegated () |
Returns if the permission is negated. More... | |
Static Public Member Functions | |
static CommandPermission | fromString (String permission) |
Generates a new CommandPermission from a permission node. More... | |
Static Public Attributes | |
static final CommandPermission | NONE = new CommandPermission(PermissionNode.NONE) |
Command can be run with no permissions. | |
static final CommandPermission | OP = new CommandPermission(PermissionNode.OP) |
A player that has to be an operator to run a command. | |
A representation of permission nodes for commands.
Represents permission nodes, being op and having all permissions
|
static |
Generates a new CommandPermission from a permission node.
permission | the permission node |
Optional< String > dev.jorel.commandapi.CommandPermission.getPermission | ( | ) |
Returns the custom permission in string form if set.
Optional<String>
with the custom permission or an empty Optional
if not set boolean dev.jorel.commandapi.CommandPermission.isNegated | ( | ) |
Returns if the permission is negated.
String dev.jorel.commandapi.CommandPermission.toString | ( | ) |
Returns a human-readable string of this CommandPermission.