Annotation Type Suggestions


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface Suggestions
    This annotation allows you to create annotated methods that behave like suggestions providers. The method must have this exact signature:
    
     ﹫Suggestions("name")
     public List<String> methodName(CommandContext<YourSender> sender, String input) {
     }
    Since:
    1.3.0
    • 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
        Returns:
        Suggestions provider name