If I $player->getArmorContents->getCustomName() == "Special Armor" so if they are wearing armor that ALL has the name "Special Armor" I want to give them strength
PHP: if($player->getInventory()->getHelmet()->getCustomName() === "Special Armor" and $player->getInventory()->getChestplate()->getCustomName() === "Special Armor" and $player->getInventory()->getLeggings()->getCustomName() === "Special Armor" and $player->getInventory()->getBoots()->getCustomName() === "Special Armor"){$player->addEffect(Effect::getEffect(5)->setDuration(600 * 20)->setAmplifier(2));return true;}