When after i close ChestInventory, sometime will occur : Scoreboard and player inventory not showing. How to prevent this glitch? Cause internet lag or other? I trying this code on InventoryCloseEvent for prevent this glitch: PHP: /** * @var $player Player */if($player->getPing() > 300) { $player->transfer("localhost", 19132); // Relogin} And how to prevent this glitch besides relogin player?
If you close the inventory using code (not the player close it) , there is a chance this will happen. It is client side bug. Solution is dont close using code, let the player close it