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