> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/events/playerdropitem.md).

# PlayerDropItem

Example usage:

```lua
Events.PlayerDropItem(function(event)
    if (event.itemType == ItemType.TENNIS_BALL) then
        event.cancelled = true
        MessageService.sendInfo(event.player, "Be more careful! Those can explode!")
    end
end)
```

### Parameters

#### player: [Player](/scripting/bedwars-scripting/objects/player.md)

The player that is dropping the item.

#### itemType: [ItemType](/scripting/bedwars-scripting/types/itemtype.md)

The type of item being dropped by the player.

#### amount: number

The amount of the item being dropped by the player.

#### cancelled: bool <mark style="color:yellow;">\[modifiable]</mark>

If set to true, the item drop event will be cancelled.
