Annotation Interface Permission
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionHow to compare values (name/UUID/equals/auto).Structured condition type when the permission is required.String[]Names of arguments that participate in the condition.Default permission state (string name mirroring Bukkit PermissionDefault).booleanWhether to include ".argument." segment before the node (defaults to true).The message to display if permission is denied.Override for generated permission node segment (defaults to argument name).The required permission string.The condition when the permission is required.
-
Element Details
-
value
-
when
String whenThe condition when the permission is required.- Returns:
- the condition string
- Default:
""
-
condition
PermissionConditionType conditionStructured condition type when the permission is required.- Returns:
- condition type
- Default:
ALWAYS
-
node
String nodeOverride for generated permission node segment (defaults to argument name).- Returns:
- custom node segment
- Default:
""
-
includeArgumentSegment
boolean includeArgumentSegmentWhether to include ".argument." segment before the node (defaults to true).- Returns:
- true to include ".argument."
- Default:
true
-
conditionArgs
String[] conditionArgsNames of arguments that participate in the condition.- Returns:
- argument names
- Default:
{}
-
compare
CompareMode compareHow to compare values (name/UUID/equals/auto).- Returns:
- compare mode
- Default:
AUTO
-
message
String messageThe message to display if permission is denied.- Returns:
- the permission denied message
- Default:
"magicutils.noPermission"
-
defaultValue
MagicPermissionDefault defaultValueDefault permission state (string name mirroring Bukkit PermissionDefault).- Returns:
- default permission
- Default:
OP
-