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();
}
}
}
*/
}
}