executesPlayer

fun executesPlayer(block: (Player, CommandContext<CommandSourceStack>) -> Int): CommandCreator<T>

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

Return

this CommandCreator instance for chaining

Parameters

block

the code to execute, taking the player and CommandContext