Annotation Interface Command


@Target(TYPE) @Retention(RUNTIME) public @interface Command
Is used to mark the class as a command. This annotation is required for the class to be registered.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Represents the part of the command.
  • Optional Element Summary

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

    • name

      String name
      Represents the part of the command.
    • aliases

      String[] aliases
      Represents the aliases of the command.
      Default:
      {}