public function onPlayerAlliesChanged($login)
    {
        $playerData = $this->playerStorage->getPlayerInfo($login);
        $newPlayerData = $this->playerStorage->getPlayerInfo($login, true);

        $this->playerStorage->onPlayerAlliesChanged($playerData, $newPlayerData);
        $this->dispatch(__FUNCTION__, [$playerData, $newPlayerData]);
    }
public function onPlayerAlliesChanged($login)
    {
        $playerData = $this->playerStorage->getPlayerInfo($login);
        $newPlayerData = $this->playerStorage->getPlayerInfo($login, true);

        $this->playerStorage->onPlayerAlliesChanged($playerData, $newPlayerData);
        $this->dispatch(__FUNCTION__, [$playerData, $newPlayerData]);
    }
public function onPlayerAlliesChanged ( $ login ) { $ playerData = $ this -> playerStorage -> getPlayerInfo ( $ login ) ; $ newPlayerData = $ this -> playerStorage -> getPlayerInfo ( $ login , true ) ; $ this -> playerStorage -> onPlayerAlliesChanged ( $ playerData , $ newPlayerData ) ; $ this -> dispatch ( __FUNCTION__ , [ $ playerData , $ newPlayerData ] ) ; }
When player changes allies.
When player changes allies .