Annotation Interface SubCommand


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface SubCommand
Declares a subcommand on a type or method, with optional attachment mode and suggestion-permission behavior.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The format of the node/argument to attach this subcommand to.
    boolean
     
  • Element Details

    • value

      String[] value
      Returns:
      The names of subcommands
    • skipSuggestionsChecks

      boolean skipSuggestionsChecks
      Returns:
      Whether to skip permission checks during auto-completion.
      Default:
      false
    • attachTo

      String attachTo
      The format of the node/argument to attach this subcommand to. If empty, attaches to the parent command.
      Returns:
      the format of the node/argument to attach this subcommand to, or empty to attach to the parent command
      Default:
      ""