I have been making a plugin where the armours actually work (blocking damages etc), but using getDamage() and setDamage() doesn't seems to work. Are those the correct functions? If they are, the are they broken or something? PHP: $victim = $event->getEntity(); $inv = $victim->getInventory(); $helmet = $inv->getHelmet()->getID(); $chestplate = $inv->getChestplate()->getID(); $leggings = $inv->getLeggings()->getID(); $boots = $inv->getBoots()->getID(); $damage = $event->getDamage(); $cause = $event->getCause(); Also, the plugins is keeping on giving me the error on getInventory() function being undefined, but not crashing. I did use pocketmine\inventory\PlayerInventory;, so I don't understand why this error is happening.