I was writing a plugin but I couldn't solve this problem. My problem is that the ids of the items are the same. The id for each wood is the same. I couldn't find how to separate them. Can you help me? PHP: $item = Item::get(Item::LOG); if(!$o->getInventory()->contains($item)){ $o->sendPopup("§cEnvanterinde bu öğeden bulunmamaktadır."); return false; } $this->OakWood($o); return true;$item = Item::get(Item::LOG); if(!$o->getInventory()->contains($item)){ $o->sendPopup("§cEnvanterinde bu öğeden bulunmamaktadır."); return false; } $this->BirchWood($o); return true; Oak wood working but others wood dont working. Help me.
From what I've looked, most items don't have a legacy item id. Can we change the legacy id to normal id for this? Like; PHP: $item = Item::get(Item::LOG);$item = Item::getID("17");