public function onPlayerInfoChanged(Player $oldPlayer, Player $player)
    {
        unset($this->players[$player->getLogin()]);
        unset($this->spectators[$player->getLogin()]);

        $this->onPlayerConnect($player);
    }
public function onPlayerInfoChanged(Player $oldPlayer, Player $player)
    {
        unset($this->players[$player->getLogin()]);
        unset($this->spectators[$player->getLogin()]);

        $this->onPlayerConnect($player);
    }
public function onPlayerInfoChanged ( Player $ oldPlayer , Player $ player ) { unset ( $ this -> players [ $ player -> getLogin ( ) ] ) ; unset ( $ this -> spectators [ $ player -> getLogin ( ) ] ) ; $ this -> onPlayerConnect ( $ player ) ; }
Change the status of the players.

@inheritdoc
Change the status of the players .