You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is part of a series of issues regarding the extension of the Paper documentation regarding Paper's Brigadier API.
It would be great to document the RequiredArgumentBuilder#suggests(SuggestionProvider) method in order to provide a way for developers to suggest possible input without the need of creating an entire custom argument.
For this, it would be good to examine the SuggestionProvider<S> interface and explain its usage.
An example should also be added. A possible example could be an String argument that suggests values out of a List<String>. It would also be noteworthy to mention good practices, such as filtering by current user input.
Note
This issue is part of a series of issues regarding the extension of the Paper documentation regarding Paper's Brigadier API.
It would be great to document the
RequiredArgumentBuilder#suggests(SuggestionProvider)
method in order to provide a way for developers to suggest possible input without the need of creating an entire custom argument.For this, it would be good to examine the
SuggestionProvider<S>
interface and explain its usage.An example should also be added. A possible example could be an String argument that suggests values out of a
List<String>
. It would also be noteworthy to mention good practices, such as filtering by current user input.A code example should also be given. E.g:
The text was updated successfully, but these errors were encountered: