Annotation Interface Command


@Target(TYPE) @Retention(CLASS) public @interface Command
Annotation used to define a main command. Apply this to a class to mark it as a command entry point.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The primary name of the command.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The aliases of the command.
    The description of the command.
  • Element Details

    • value

      String value
      The primary name of the command.
      Returns:
      the command name
    • aliases

      String[] aliases
      The aliases of the command.
      Returns:
      the command aliases
      Default:
      {}
    • description

      String description
      The description of the command.
      Returns:
      the command description
      Default:
      ""