feedback on settings save

This commit is contained in:
Steffen Schröder
2014-05-16 20:42:37 +02:00
parent 3423bef7a3
commit 1c4d024f4b
4 changed files with 18 additions and 3 deletions

View File

@ -262,9 +262,14 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
settype($newSettings[$settingName], gettype($serverSettings[$settingName]));
}
$this->applyNewServerSettings($newSettings, $player);
$success = $this->applyNewServerSettings($newSettings, $player);
if ($success) {
$this->maniaControl->chat->sendSuccess('Server Settings saved!', $player);
} else {
$this->maniaControl->chat->sendSuccess('Server Settings Saving failed!', $player);
}
//Reopen the Menu
// Reopen the Menu
$menuId = $this->maniaControl->configurator->getMenuId($this->getTitle());
$this->maniaControl->configurator->reopenMenu($player, $menuId);
}