So, I was adding enchants to my Kohi 1vs1 duel plugin. Here is code w/o enchants; PHP: $player->getInventory()->setHelmet(Item::get(310, 0, 1)); $player->getInventory()->setChestplate(Item::get(311, 0, 1)); $player->getInventory()->setLeggings(Item::get(312, 0, 1)); $player->getInventory()->setBoots(Item::get(313, 0, 1)); $player->getInventory()->sendArmorContents($player); This worked fine, with $player in the brackets of sendArmorContents... But now; PHP: $enchantment = Enchantment::getEnchantment(0); $enchantment->setLevel(1); $helmet = Item::get(310,0,1); $chestplate = Item::get(311,0,1); $leggings = Item::get(312,0,1); $boots = Item::get(313,0,1); $helmet->addEnchantment($enchantment); $chestplate->addEnchantment($enchantment); $leggings->addEnchantment($enchantment); $boots->addEnchantment($enchantment); $player->getInventory()->setHelmet($helmet); $player->getInventory()->setChestplate($chestplate); $player->getInventory()->setLeggings($leggings); $player->getInventory()->setBoots($boots); $player->getInventory()->sendArmorContents($helmet,$chestplate,$leggings,$boots); It only gives the armour and contents to one of the players, I would be really grateful if someone helped me. :£
PHP: $player->getInventory()->setArmorContents([$helmet, $chestplate, $leggings, $boots]);$player->getInventory()->sendArmorContents($player);