Annotation Type Command


Method that indicates that a method is a command method.

This method is repeatable, and each instance will result in a unique command.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the command syntax string.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the required sender type.
  • Field Summary

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

  • Element Details

    • value

      Returns the command syntax string.
      Returns:
      the command syntax string
    • requiredSender

      @NonNull Class<?> requiredSender
      Returns the required sender type.

      If the type is set to Object no specific sender type will be enforced.

      Returns:
      the required sender type
      Default:
      java.lang.Object.class