Class Permission
java.lang.Object
cloud.commandframework.permission.Permission
- All Implemented Interfaces:
CommandPermission
CommandArgument
permission-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Permission
empty()
Get an empty command permissionboolean
Get the command permission@NonNull Collection<@NonNull CommandPermission>
Get the permission nodesint
hashCode()
static @NonNull Permission
Create a command permission instancetoString()
Get the command permissionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface cloud.commandframework.permission.CommandPermission
and, and, or, or
-
Method Details
-
empty
Get an empty command permission- Returns:
- Command permission
-
of
Create a command permission instance- Parameters:
string
- Command permission- Returns:
- Created command permission
-
getPermission
Get the command permission- Returns:
- Command permission
-
getPermissions
Description copied from interface:CommandPermission
Get the permission nodes- Specified by:
getPermissions
in interfaceCommandPermission
- Returns:
- Permission nodes
-
toString
Get the command permission- Specified by:
toString
in interfaceCommandPermission
- Overrides:
toString
in classObject
- Returns:
- Command permission
-
equals
-
hashCode
public int hashCode()
-