CommandExecuteEvent

Called when a command is executed by any sender.

Types

Link copied to clipboard
data class Result(val command: String) : Record

The result of a command's execution.

Functions

Link copied to clipboard
abstract fun allow()

Allows this event to occur.

Link copied to clipboard

Allows this event to occur, and sets the result to the given result.

Link copied to clipboard
abstract fun deny()

Denies an event from occurring.

Link copied to clipboard

Denies this event from occur, and sets the result to the given result.

Link copied to clipboard
abstract fun isAllowed(): Boolean

Checks if this event is allowed to happen.

Properties

Link copied to clipboard
abstract val command: String

The command that was executed.

Link copied to clipboard

The result that is returned by this event.

Link copied to clipboard
abstract val sender: Sender

The sender that executed the command.