pocketmine\updater\AutoUpdater::doUpgrade PHP Метод

doUpgrade() публичный Метод

public doUpgrade ( )
    public function doUpgrade()
    {
        if (!$this->isupdating) {
            $this->isupdating = true;
            $this->server->getScheduler()->scheduleAsyncTask(new Upgrader($this->updateInfo['download_url'], $this->updateInfo['fingerprint'], "phar://" . $this->server->getDataPath() . "ClearSkyNewVersion" . "phar"));
            //Is an .phar needed?
        } else {
            Command::broadcastCommandMessage($sender, new TranslationContainer("commands.upgrade.isUpdating"));
        }
    }