Annotation Interface CommandInfo
Annotation for command metadata.
Used to specify command name, description, aliases, and permission
requirement.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Command aliases.Command description.How this command's root execute is owned when several plugins contribute to the same root (e.g.Specific permission node required to execute the command.Default permission state (matches Bukkit PermissionDefault).Threading policy for command execution.
-
Element Details
-
name
-
description
-
aliases
-
permission
String permissionSpecific permission node required to execute the command. If empty, no check is performed.- Returns:
- permission node
- Default:
""
-
permissionDefault
MagicPermissionDefault permissionDefaultDefault permission state (matches Bukkit PermissionDefault).- Returns:
- default permission
- Default:
OP
-
threading
CommandThreading threadingThreading policy for command execution.- Returns:
- threading policy
- Default:
MAIN
-
merge
MergePolicy mergeHow this command's root execute is owned when several plugins contribute to the same root (e.g. a shared/nox). Used when this command is merged into an already-registered root via the registry's contribute API. Defaults toMergePolicy.CONTRIBUTE.- Returns:
- the merge policy for the root execute
- Default:
CONTRIBUTE
-