PlayerDamageBlockEvent

Called when a block is damaged by a player.

Functions

Link copied to clipboard
abstract fun allow()

Allows this event to occur.

Link copied to clipboard
abstract fun deny()

Denies an event from occurring.

Link copied to clipboard
abstract fun isAllowed(): Boolean

Checks if this event is allowed to happen.

Properties

Link copied to clipboard
abstract val block: Block

The block that is being broken by the player.

Link copied to clipboard
abstract val player: Player

The player involved in this event.