diff --git a/core/Configurator/GameModeSettings.php b/core/Configurator/GameModeSettings.php index 25c11e63..d30c42dd 100644 --- a/core/Configurator/GameModeSettings.php +++ b/core/Configurator/GameModeSettings.php @@ -618,6 +618,7 @@ class GameModeSettings implements ConfiguratorMenu, CallbackListener, Communicat // Trigger own callback $this->maniaControl->getCallbackManager()->triggerCallback(self::CB_GAMEMODESETTING_CHANGED, $settingName, $settingValue); + Logger::log(AuthenticationManager::getAuthLevelName($player->authLevel) .' "'. $player->nickname . '" ('. $player->login .') changed the gamemode setting "'. $settingName .'" to "'. $settingValue .'"'); $settingIndex++; } @@ -627,7 +628,6 @@ class GameModeSettings implements ConfiguratorMenu, CallbackListener, Communicat $chatMessage .= '!'; $this->maniaControl->getChat()->sendInformation($chatMessage); - Logger::logInfo($chatMessage, true); return true; } diff --git a/core/Configurator/ManiaControlSettings.php b/core/Configurator/ManiaControlSettings.php index 117047e5..4a0ba1f8 100644 --- a/core/Configurator/ManiaControlSettings.php +++ b/core/Configurator/ManiaControlSettings.php @@ -15,6 +15,7 @@ use FML\Script\Script; use ManiaControl\Admin\AuthenticationManager; use ManiaControl\Callbacks\CallbackListener; use ManiaControl\Callbacks\CallbackManager; +use ManiaControl\Logger; use ManiaControl\ManiaControl; use ManiaControl\Players\Player; use ManiaControl\Settings\Setting; @@ -528,6 +529,7 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener { $setting->value = $settingData['Value']; } $this->maniaControl->getSettingManager()->saveSetting($setting); + Logger::log(AuthenticationManager::getAuthLevelName($player->authLevel) .' "'. $player->nickname . '" ('. $player->login .') changed the setting "'. $setting->class . '\\\\' . $setting->setting .'" to "'. $setting->value .'"'); } $this->maniaControl->getChat()->sendSuccess('Settings saved!', $player); diff --git a/core/Plugins/PluginMenu.php b/core/Plugins/PluginMenu.php index 5f8894f7..5dda2c92 100644 --- a/core/Plugins/PluginMenu.php +++ b/core/Plugins/PluginMenu.php @@ -636,6 +636,8 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAns $setting->value = $settingData['Value']; } $this->maniaControl->getSettingManager()->saveSetting($setting); + Logger::log(AuthenticationManager::getAuthLevelName($player->authLevel) .' "'. $player->nickname . '" ('. $player->login .') changed the setting "'. $setting->class . '\\\\' . $setting->setting .'" to "'. $setting->value .'"'); + } $this->maniaControl->getChat()->sendSuccess('Plugin Settings saved!', $player); diff --git a/core/Server/ServerOptionsMenu.php b/core/Server/ServerOptionsMenu.php index a1d7ff24..62c5cc98 100644 --- a/core/Server/ServerOptionsMenu.php +++ b/core/Server/ServerOptionsMenu.php @@ -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); } diff --git a/core/Server/VoteRatiosMenu.php b/core/Server/VoteRatiosMenu.php index abc059e1..689a02a2 100644 --- a/core/Server/VoteRatiosMenu.php +++ b/core/Server/VoteRatiosMenu.php @@ -10,6 +10,7 @@ use ManiaControl\Admin\AuthenticationManager; use ManiaControl\Callbacks\CallbackListener; use ManiaControl\Callbacks\TimerListener; use ManiaControl\Configurator\ConfiguratorMenu; +use ManiaControl\Logger; use ManiaControl\ManiaControl; use ManiaControl\Players\Player; use Maniaplanet\DedicatedServer\Structures\VoteRatio; @@ -166,6 +167,7 @@ class VoteRatiosMenu implements CallbackListener, ConfiguratorMenu, TimerListene $success = $this->maniaControl->getClient()->setCallVoteRatios($newVoteRatios); if ($success) { $this->maniaControl->getChat()->sendSuccess('Vote Ratios saved!', $player); + Logger::log(AuthenticationManager::getAuthLevelName($player->authLevel) .' "'. $player->nickname . '" ('. $player->login .') changed the Vote Ratios'); } else { $this->maniaControl->getChat()->sendError('Vote Ratios saving failed!', $player); }