KytaleCommandBuilder
Functions
Link copied to clipboard
fun <W : WrappedArg<T>, T> defaultArg(name: String, description: String, wrapper: ArgWrapper<W, T>, defaultValue: T, defaultValueDescription: String): W
Adds a wrapped default argument to the command
fun <T> defaultArg(name: String, description: String, argType: ArgumentType<T>, defaultValue: T, defaultValueDescription: String): DefaultArg<T>
Adds a default argument to the command
Link copied to clipboard
Sets an asynchronous executor for the command
Link copied to clipboard
Sets a synchronous executor for the command
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Requires a permission for the command
Link copied to clipboard
fun subcommand(name: String, description: String, block: KytaleCommandBuilder.() -> Unit): KytaleCommand
Adds a subcommand
Link copied to clipboard
Adds a usage variant