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

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

public __construct ( Server $server, $endpoint )
$server pocketmine\Server
    public function __construct(Server $server, $endpoint)
    {
        $this->server = $server;
        $this->endpoint = "http://{$endpoint}/job/" . $this->getChannel() . "/api/json";
        if ($this->server->getPocketMineBuild() === "CuttingEdge") {
            $this->showCuttingEdge();
            $this->hasUpdate = false;
        } else {
            /*
            if($server->getProperty("auto-updater.enabled", true)){
            	$this->check();
            	if($this->hasUpdate()){
            		if($this->server->getProperty("auto-updater.on-update.warn-console", true)){
            			$this->showConsoleUpdate();
            		}
            	}
            }
            */
        }
    }