Annotation Type CommandMethod


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface CommandMethod
Used to declare a class method as a command method
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    @NonNull String
    Command syntax
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    @NonNull Class<?>
    The required sender
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Field Details

  • Element Details

    • value

      @NonNull String value
      Command syntax
      Returns:
      Command syntax
    • requiredSender

      @NonNull Class<?> requiredSender
      The required sender
      Returns:
      Required sender
      Default:
      java.lang.Object.class