add message when plugins update are available

This commit is contained in:
Beu 2023-09-08 15:08:49 +02:00
parent 405d6027f7
commit 478e842230

View File

@ -119,6 +119,8 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
$message = "Plugins Update Check completed: There are {$updatesCount} Updates available!";
if ($player) {
$this->maniaControl->getChat()->sendSuccess($message, $player);
} else {
$this->maniaControl->getChat()->sendSuccessToAdmins($message . " (you can use //pluginsupdate)");
}
Logger::log($message);
}