choice
Adds a string "choice" argument to this command.
The argument only accepts one of the provided values and will suggest them for tab-completion.
Implementation detail: This is implemented using Paper's CustomArgumentType.Converted, delegating to a native StringArgumentType.word() on the client and converting/validating on the server.
Consequences:
Client-side syntax validation only knows about a generic string token, not the specific choices.
Invalid values are rejected on the server when the command is executed.
Suggestions are provided by the server in the order of values.
Documentation: Custom arguments
See also
Returns the parsed value of a choice argument.
This will return the exact string token selected by the user. The value is guaranteed to be one of the allowed choices if the command handler is invoked.