PlayerAttackEntityEvent

Called when a player attacks an entity.

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 player: Player

The player involved in this event.

Link copied to clipboard
abstract val target: Entity

The entity that was interacted with.