improved directory browser and map update check

This commit is contained in:
kremsy
2017-04-11 14:58:17 +02:00
parent 8d7a147295
commit 5b87873aba
3 changed files with 32 additions and 4 deletions

View File

@ -362,6 +362,11 @@ class DirectoryBrowser implements ManialinkPageAnswerListener {
return;
}
//Update MX Data and ID
$this->maniaControl->getMapManager()->getMXManager()->fetchManiaExchangeMapInformation($map);
$map->lastUpdate = time();
// Message
$message = $player->getEscapedNickname() . ' added ' . $map->getEscapedName() . '!';
$this->maniaControl->getChat()->sendSuccess($message);