diff --git a/MCServer/Plugins/Core/web_manageserver.lua b/MCServer/Plugins/Core/web_manageserver.lua index 222736d50..4e8a9a747 100644 --- a/MCServer/Plugins/Core/web_manageserver.lua +++ b/MCServer/Plugins/Core/web_manageserver.lua @@ -6,19 +6,30 @@ function HandleRequest_ManageServer( Request ) cRoot:Get():GetPluginManager():ReloadPlugins() elseif( Request.PostParams["StopServer"] ~= nil ) then cRoot:Get():ExecuteConsoleCommand("stop") + elseif( Request.PostParams["WorldSaveAllChunks"] ~= nil ) then + cRoot:Get():GetWorld(Request.PostParams["WorldSaveAllChunks"]):SaveAllChunks() end Content = Content .. [[ -
]] - - Content = Content .. [[ - - - - - + +

restart the server

reload the server

stop the server
+ +
+
+
+
Manage Server
restart the server
reload the server
stop the server
- + + ]] + local LoopWorlds = function( World ) + Content = Content .. [[ +
+ + ]] + end + cRoot:Get():ForEachWorld( LoopWorlds ) + Content = Content .. "
Manage Worlds
Save all the chunks of world ]] .. World:GetName() .. [[
" + return Content end