Hello pmmp team i usualy find out this stuff by my self but then i got stuck so i came here. So i was wondering what the code to get armoreffects is. Bassically lets say when i put on full gold i get regen strenght and speed and i looked all over the docs the only thing i found, or believe is right is the events that i am using. So if anyone can give me the code it will be very nice of you.
You can use EntityArmorChangeEvent and check if the player is wearing gold armour, like so: PHP: public function onArmor(EntityChangeArmorEvent $e){$entity = $e->getEntity();//We now use if statements and check if $entity is an instanceof Player.if($entity instanceof Player){if(//Code to check helmet, chestplate and leggings goes here){
It's actually EntityArmorChangeEvent, not EntityChangeArmorEvent. Not a big deal, but it could be misleading to others.