protected function updatePlayer($player)
    {
        $time = time();
        $upTime = $time - $this->playerLastUpTime[$player->getLogin()];
        $this->playerLastUpTime[$player->getLogin()] = $time;

        $player->setOnlineTime($player->getOnlineTime() + $upTime);
    }
protected function updatePlayer($player)
    {
        $time = time();
        $upTime = $time - $this->playerLastUpTime[$player->getLogin()];
        $this->playerLastUpTime[$player->getLogin()] = $time;

        $player->setOnlineTime($player->getOnlineTime() + $upTime);
    }
protected function updatePlayer ( $ player ) { $ time = time ( ) ; $ upTime = $ time - $ this -> playerLastUpTime [ $ player -> getLogin ( ) ] ; $ this -> playerLastUpTime [ $ player -> getLogin ( ) ] = $ time ; $ player -> setOnlineTime ( $ player -> getOnlineTime ( ) + $ upTime ) ; }
Update player information.

@param PlayerModel $player Login of the player.
Update player information .