Fatal error: Nesting level too deep - recursive dependency line 132 Codigo: public function inGame(Player $player) { return in_array($player, $this->getPlayers()); }
Make sure that $this->getPlayers() returns an array. I suggest using PHPStorm, it may help you a lot when coding. Just make sure to have PMMP API installed in it.
But how will I know that if I don't know why I get the error That error causes my server to close when a player enters the game