Hello, i don't know how to get if a player is using for example an Helmet, i do like this: PHP: if(!$player->getArmorInventory()->getHelmet()){ to get if a player is using a Helmet or not, how can i do that? for me it doens't works..
I guess.. PHP: if($player->getArmorInventory()->getHelmet() !== true){ //Do something} And of course you need to put this in an event or just enable this check by using FOR EXAMPLE command which will enable repeatingtask.. It depends on how you gonna use this.
PHP: if($player->getArmorInventory()->getHelmet()->isNull() == false){ // Player wearing a helmet} Also @killer549 you mad bruh? Armor inventory -> getItem/getHelmet doesn't return any bool, it returns Item instance
Unfortunately I noticed this after replying to this thread. When I attempted to find a way when @LewBr confirmed that this didn't work. "_"