onCommand

open override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean(source)

Executes the command when it is invoked.

Return

True if the command was executed successfully, false otherwise.

Parameters

sender

The command sender.

command

The command being executed.

label

The command label.

args

The command arguments.