Skip to content

PlayerDropItemEvent ​

class · pocketmine\event\player\PlayerDropItemEvent · source

Extends PlayerEvent
Implements Cancellable

Called when a player tries to drop an item

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\item\Item $drop)

getItem() ​

php
public function getItem() : \pocketmine\item\Item

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.