Add logging when an admin change a setting

This commit is contained in:
Beu
2025-06-22 10:41:45 +02:00
parent 7a8d9f2b0b
commit f15fc201d2
5 changed files with 8 additions and 1 deletions

View File

@ -418,6 +418,7 @@ class ServerOptionsMenu implements CallbackListener, ConfiguratorMenu, TimerList
$success = $this->applyNewServerOptions($newServerOptions, $player);
if ($success) {
$this->maniaControl->getChat()->sendSuccess('Server Options saved!', $player);
Logger::log(AuthenticationManager::getAuthLevelName($player->authLevel) .' "'. $player->nickname . '" ('. $player->login .') changed Server Options');
} else {
$this->maniaControl->getChat()->sendError('Server Options saving failed!', $player);
}