protected function setGReplay($login)
    {
        if ($this->enabled->get() == false) {
            return;
        }

        $tempReplay = new IXR_Base64("");
        $this->dedimaniaService->setGReplay("", $tempReplay);

        $player = new Player();
        $player->login = $login;
        try {
            $this->factory->getConnection()->saveBestGhostsReplay($player, "exp2_temp_replay");
            $replay = new IXR_Base64(
                $this->fileSystem->getUserData()->readAndDelete(
                    "Replays".DIRECTORY_SEPARATOR."exp2_temp_replay.Replay.Gbx")
            );
            $this->dedimaniaService->setGReplay($login, $replay);
        } catch (\Exception $e) {
            $this->console->writeln('Dedimania: $f00Error while fetching GhostsReplay');
        }

    }
protected function setGReplay($login)
    {
        if ($this->enabled->get() == false) {
            return;
        }

        $tempReplay = new IXR_Base64("");
        $this->dedimaniaService->setGReplay("", $tempReplay);

        $player = new Player();
        $player->login = $login;
        try {
            $this->factory->getConnection()->saveBestGhostsReplay($player, "exp2_temp_replay");
            $replay = new IXR_Base64(
                $this->fileSystem->getUserData()->readAndDelete(
                    "Replays".DIRECTORY_SEPARATOR."exp2_temp_replay.Replay.Gbx")
            );
            $this->dedimaniaService->setGReplay($login, $replay);
        } catch (\Exception $e) {
            $this->console->writeln('Dedimania: $f00Error while fetching GhostsReplay');
        }

    }
protected function setGReplay ( $ login ) { if ( $ this -> enabled -> get ( ) == false ) { return ; } $ tempReplay = new IXR_Base64 ( "" ) ; $ this -> dedimaniaService -> setGReplay ( "" , $ tempReplay ) ; $ player = new Player ( ) ; $ player -> login = $ login ; try { $ this -> factory -> getConnection ( ) -> saveBestGhostsReplay ( $ player , "exp2_temp_replay" ) ; $ replay = new IXR_Base64 ( $ this -> fileSystem -> getUserData ( ) -> readAndDelete ( "Replays" . DIRECTORY_SEPARATOR . "exp2_temp_replay.Replay.Gbx" ) ) ; $ this -> dedimaniaService -> setGReplay ( $ login , $ replay ) ; } catch ( \ Exception $ e ) { $ this -> console -> writeln ( 'Dedimania: $f00Error while fetching GhostsReplay' ) ; } }
Sets new Ghost replay for the map
@param $login
Sets new Ghost replay for the map