onCommand

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

Executes a command sent by a command sender.

Return

true if the command was executed successfully, false otherwise.

Parameters

sender

The command sender.

command

The executed command.

label

The command label.

args

The command arguments.