Annotation Interface Command


@Documented @Retention(RUNTIME) @Target({}) public @interface Command
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of this command.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    List of alias command names for this command.
    The permission required to use this command.
    The usage message printed if this command is used wrong.
  • Element Details

    • name

      String name
      Name of this command.
      Returns:
      the name
    • aliases

      String[] aliases
      List of alias command names for this command.
      Returns:
      the alias list
      Default:
      {}
    • permission

      String permission
      The permission required to use this command.
      Returns:
      the permission
      Default:
      ""
    • usage

      String usage
      The usage message printed if this command is used wrong.
      Returns:
      the usage message
      Default:
      ""