protected function checkUpdate()
{
if ($this->updateInfo === null) {
return;
}
$currentBuild = $this->server->getPocketMineBuild();
$newBuild = $this->updateInfo["build"];
if ($currentBuild < $newBuild) {
$this->hasUpdate = true;
} else {
$this->hasUpdate = false;
}
}