Annotation Interface Command


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Command
The main entrypoint to a command, which specifies the parent of any command.

This can be used alone on methods, or can be added on a class to automatically mark all methods inside the class as children of the given command.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The command main name, and aliases if any.
  • Element Details

    • value

      String[] value
      The command main name, and aliases if any. Values can contain spaces, in which case it would automatically walk through the categories and correctly calculate the command path.
      Returns:
      The command name and aliases