diff --git a/MCServer/Plugins/Core/web_serversettings.lua b/MCServer/Plugins/Core/web_serversettings.lua index 63b5aab47..c4b41e685 100644 --- a/MCServer/Plugins/Core/web_serversettings.lua +++ b/MCServer/Plugins/Core/web_serversettings.lua @@ -9,9 +9,18 @@ end local function HTML_Select_On_Off( name, defaultValue ) return [[]] + .. HTML_Option("1", "On", defaultValue == 1 ) + .. HTML_Option("0", "Off", defaultValue == 0 ) + .. [[]] +end + +local function HTML_Select_Version( name, defaultValue ) + return [[]] end @@ -31,7 +40,10 @@ local function ShowGeneralSettings( Request ) SettingsIni:SetValue("Server", "MaxPlayers", Request.PostParams["Server_MaxPlayers"], false ) end if( tonumber( Request.PostParams["Server_Port"] ) ~= nil ) then - SettingsIni:SetValue("Server", "Port", Request.PostParams["Server_Port"], false ) + SettingsIni:SetValue("Server", "Port", Request.PostParams["Server_Port"], false ) + end + if( tonumber( Request.PostParams["Server_Version"] ) ~= nil ) then + SettingsIni:SetValue("Server", "PrimaryServerVersion", Request.PostParams["Server_Version"], false ) end if( tonumber( Request.PostParams["Authentication_Authenticate"] ) ~= nil ) then SettingsIni:SetValue("Authentication", "Authenticate", Request.PostParams["Authentication_Authenticate"], false ) @@ -60,6 +72,8 @@ local function ShowGeneralSettings( Request )