diff --git a/MCServer/Plugins/Core/web_serversettings.lua b/MCServer/Plugins/Core/web_serversettings.lua index 057fa3e89..3056d7e8b 100644 --- a/MCServer/Plugins/Core/web_serversettings.lua +++ b/MCServer/Plugins/Core/web_serversettings.lua @@ -1,19 +1,17 @@ -- Some HTML helper functions local function HTML_Option( value, text, selected ) if( selected == true ) then - return "" + return [[]] else - return "" + return [["]] end end local function HTML_Select_On_Off( name, defaultValue ) - local Content = "" - Content = Content .. "" - return Content + return [[]] end @@ -39,37 +37,39 @@ local function ShowGeneralSettings( Request ) SettingsIni:SetValue("Authentication", "Authenticate", Request.PostParams["Authentication_Authenticate"], false ) end if( SettingsIni:WriteFile() == false ) then - InfoMsg = "ERROR: Could not write to settings.ini!" + InfoMsg = [[ERROR: Could not write to settings.ini!]] else - InfoMsg = "INFO: Successfully saved changes to settings.ini" + InfoMsg = [[INFO: Successfully saved changes to settings.ini]] end end - Content = Content .. "
" + WARNING: Any changes made here might require a server restart in order to be applied! + ]] return Content end @@ -108,18 +108,18 @@ local function ShowMonstersSettings( Request ) Content = Content .. "" .. InfoMsg .. "
" end - Content = Content .. "Monsters | " - Content = Content .. "|
---|---|
Animals On: | " - Content = Content .. "" .. HTML_Select_On_Off("Monsters_AnimalsOn", SettingsIni:GetValueI("Monsters", "AnimalsOn") ) .. " |
Animal Spawn Interval: | " - Content = Content .. "|
Monster Types: | " - Content = Content .. "
Monsters | +|
---|---|
Animals On: | +]] .. HTML_Select_On_Off("Monsters_AnimalsOn", SettingsIni:GetValueI("Monsters", "AnimalsOn") ) .. [[ |
Animal Spawn Interval: | +|
Monster Types: | +
Server Settings
" - Content = Content .. "General | " - Content = Content .. "Monsters | " - Content = Content .. "Worlds | " - Content = Content .. "
Server Settings
+General | +Monsters | +Worlds | +