When i try to join my server it shuts down without showing error or anything. Can someone help me to solve it? [ATTACH]
I suggest you to learn PHP OOP, there you can learn how objects work.
Try this $inventory = $player->getInventory(); $num = rand(0,35); $slot = $num; while($inventory->isSlotEmpty($slot)) { $slot = rand(0,35);...
Separate names with a comma.