Annotation Interface AutoRegisterCommand


@Target(TYPE) @Retention(RUNTIME) public @interface AutoRegisterCommand
Annotation to mark a class for automatic command registration. Use the AutoCommandRegistrar to register commands annotated with this.
  • Element Details

    • command

      String command
      The command to register.
      Default:
      ""
    • commands

      String[] commands
      The commands to register.
      Default:
      {}
    • name

      String name
      Deprecated.
      Use command() or commands() for actual command registration.
      The name of the command handler. NOT the actual command string, but a speaking name for the handler.
      Default:
      ""
    • aliases

      String[] aliases
      Aliases for the command.
      Default:
      {}
    • description

      String description
      Description of the command.
      Default:
      "__UNSET__"
    • usage

      String usage
      Usage information for the command.
      Default:
      "__UNSET__"
    • permission

      String permission
      Permission required to execute the command.
      Default:
      "__UNSET__"