executes

fun executes(executor: CommandExecutor)

Sets the execution handler for this command node.

Use CommandContext.getArgument to retrieve the argument value.

Parameters

executor

A function that handles command execution and returns a result code