Annotation Interface CommandInfo


@Target(TYPE) @Retention(RUNTIME) public @interface CommandInfo
Annotation for command metadata. Used to specify command name, description, aliases, and permission requirement.
  • Element Details

    • name

      String name
      Command name.
      Returns:
      the name of the command
    • description

      String description
      Command description.
      Returns:
      the description of the command
      Default:
      ""
    • aliases

      String[] aliases
      Command aliases.
      Returns:
      the aliases for the command
      Default:
      {}
    • permission

      String permission
      Specific permission node required to execute the command. If empty, no check is performed.
      Returns:
      permission node
      Default:
      ""
    • permissionDefault

      MagicPermissionDefault permissionDefault
      Default permission state (matches Bukkit PermissionDefault).
      Returns:
      default permission
      Default:
      OP
    • threading

      CommandThreading threading
      Threading policy for command execution.
      Returns:
      threading policy
      Default:
      MAIN
    • merge

      How 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 to MergePolicy.CONTRIBUTE.
      Returns:
      the merge policy for the root execute
      Default:
      CONTRIBUTE