Annotation Type Suggestions

  • @Target(METHOD)
    public @interface Suggestions
    This annotation allows you to create annotated methods that behave like suggestions providers. The method must have this exact signature:
     public List<String> methodName(CommandContext<YourSender> sender, String input) {
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      @NonNull String value
      Name of the suggestions provider.
    • Element Detail

      • value

        @NonNull String value
        Name of the suggestions provider. This should be the same as the name specified in your command arguments
        Suggestions provider name