PlayerInteractItemEvent

class PlayerInteractItemEvent(val player: Player, val hand: InteractionHand) : CancellableEvent

Warning: UseHotbarSlotOrOffHand won't stimulate this event

Constructors

Link copied to clipboard
constructor(player: Player, hand: InteractionHand)

Properties

Link copied to clipboard
val hand: InteractionHand
Link copied to clipboard

Let you know if the event is canceled

Link copied to clipboard
Link copied to clipboard
val player: Player

Functions

Link copied to clipboard

Allows you to cancel an event