86 if($this->updateInfo === null){
89 $newVersion =
new VersionString($this->updateInfo->base_version, $this->updateInfo->is_dev, $this->updateInfo->build);
91 "Your version of " . $this->
server->getName() .
" is out of date. Version " . $newVersion->getFullVersion(
true) .
" was released on " . date(
"D M j h:i:s Y", $this->updateInfo->date)
94 $messages[] =
"Details: " . $this->updateInfo->details_url;
95 $messages[] =
"Download: " . $this->updateInfo->download_url;
97 $this->printConsoleMessage($messages, \LogLevel::WARNING);
143 $newVersion =
new VersionString($updateInfo->base_version, $updateInfo->is_dev, $updateInfo->build);
144 }
catch(\InvalidArgumentException $e){
146 $this->logger->debug(
"Assuming no update because \"" . $e->getMessage() .
"\"");
150 if($currentVersion->getBuild() > 0 && $currentVersion->compare($newVersion) > 0){
151 $this->updateInfo = $updateInfo;
153 $this->logger->debug(
"API reported version is an older version or the same version (" . $newVersion->getFullVersion() .
"), not showing notification");