Wizards of Lua

The Art of Spell Crafting


PlayerItemPickupEvent - When a Player Collects Something

The PlayerItemPickupEvent is fired whenever a Player picks up an DroppedItem.

The PlayerItemPickupEvent class is a subtype of the Event class and inherits all its properties and functions.

Here is an overview of the PlayerItemPickupEvent properties:

Property Type read / write
item DroppedItem r
player Player r

Properties

Below you find short descriptions about each of the properties and some examples about how to use them in your spells.


item : DroppedItem

The item that has been collected.


player : Player

The player that triggered this event.