option Vararg
abstract fun optionVararg(declaredName: String, amount: Int, requiredAmount: Int, optionNameSupplier: (Int) -> String, block: TextCommandOptionBuilder.(Int) -> Unit = {})(source)
Declares multiple input options in a single parameter.
The parameter's type needs to be a List, where the element type is supported by ParameterResolver.
Additional types can be added by implementing TextParameterResolver.
Note: You are limited to one vararg parameter in text commands.
Parameters
declared Name
Name of the declared parameter which receives the value of the combined options
amount
How many options to generate
required Amount
How many of the generated options are required
option Name Supplier
Block generating an option name from the option's index