https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/inventory/PlayerInventory.php#L238 These four functions should help
To check if a player is wearing something, e.g. Diamond Helmet, you can use: PHP: /** * @var Player $player */if($player->getInventory()->getHelmet()->getId() === Item::DIAMOND_HELMET) { // do something} You don’t need to use an event if you just want to check if a player is wearing something. If you want to run some code after the player put on something, use the EntityArmorChangeEvent: PHP: public function onArmorChange(EntityArmorChangeEvent $event) { $entity = $event->getEntity(); if($entity instanceof Player) { // if entity is a player // do something // use getNewItem() to get the item which will be in the slot after the event. }}