executesConsole

fun executesConsole(block: (ConsoleCommandSender, CommandContext<CommandSourceStack>) -> Int): CommandCreator<T>

Sets the execution handler for this command, limited to console only.

Return

this CommandCreator instance for chaining

Parameters

block

the code to execute, taking the console sender and CommandContext