SuspendingCommandExecutor

interface SuspendingCommandExecutor

Represents a class which contains a single method for executing commands

Functions

onCommand
Link copied to clipboard
abstract suspend fun onCommand(sender: <ERROR CLASS>, command: <ERROR CLASS>, label: String, args: Array<out String>): Boolean

Executes the given command, returning its success. If false is returned, then the "usage" plugin.yml entry for this command (if defined) will be sent to the player.