Hello when i use PHP: $player->getInventory()->setItem(8, Item::get(1, 0, 1)->setCustomName(C::GREEN ."Hub")); it do not add item to player! only when player break block help
i know now why it dont running because my server is so laggy when i tested it on server with 4 cpu and 6gb ram i works
Try Player::getInventory->sendContents($player) if you're still getting this issue. It's probably caused by PlayerInventory::setItem() not sending an inventory update to the client.