Class Permission
java.lang.Object
cloud.commandframework.permission.Permission
- All Implemented Interfaces:
CommandPermission
CommandArgument permission-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Permissionempty()Get an empty command permissionbooleanGet the command permission@NonNull Collection<@NonNull CommandPermission>Get the permission nodesinthashCode()static @NonNull PermissionCreate a command permission instancetoString()Get the command permissionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:CommandPermissionGet the permission nodes- Specified by:
getPermissionsin interfaceCommandPermission- Returns:
- Permission nodes
-
toString
Get the command permission- Specified by:
toStringin interfaceCommandPermission- Overrides:
toStringin classObject- Returns:
- Command permission
-
equals
-
hashCode
public int hashCode()
-