How to clear total inventory of player? Even the item on crafting inventory and player cursor inventory?
Cursor inventory: $player->getCursorInventory() Player inventory: $player->getInventory() Use inventory->clearAll() to clear the inventory.
it extends base inventory which does have that function, please learn OOP or read the docs. it's PHP: $player->getCursorInventory()->clearAll();
OI don't assume I don't know how to program simply from a single post. I just didn't look at the parent class