summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/web_manageserver.lua
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-16 12:25:53 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-16 12:25:53 +0200
commitcbde4f546a3135d9889b37aa227468106958a94a (patch)
tree0444a5f3d1797a01fb6a4c01def9933084652e8c /MCServer/Plugins/Core/web_manageserver.lua
parentFeature and bugfixes [SEE DESC] (diff)
parentReplaced E_ENTITY_TYPE_XXX with cMonster::mtXXX. (diff)
downloadcuberite-cbde4f546a3135d9889b37aa227468106958a94a.tar
cuberite-cbde4f546a3135d9889b37aa227468106958a94a.tar.gz
cuberite-cbde4f546a3135d9889b37aa227468106958a94a.tar.bz2
cuberite-cbde4f546a3135d9889b37aa227468106958a94a.tar.lz
cuberite-cbde4f546a3135d9889b37aa227468106958a94a.tar.xz
cuberite-cbde4f546a3135d9889b37aa227468106958a94a.tar.zst
cuberite-cbde4f546a3135d9889b37aa227468106958a94a.zip
Diffstat (limited to 'MCServer/Plugins/Core/web_manageserver.lua')
-rw-r--r--MCServer/Plugins/Core/web_manageserver.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/MCServer/Plugins/Core/web_manageserver.lua b/MCServer/Plugins/Core/web_manageserver.lua
deleted file mode 100644
index a2936c1a8..000000000
--- a/MCServer/Plugins/Core/web_manageserver.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-function HandleRequest_ManageServer( Request )
- local Content = ""
- if (Request.PostParams["RestartServer"] ~= nil) then
- cRoot:Get():QueueExecuteConsoleCommand("restart");
- elseif (Request.PostParams["ReloadServer"] ~= nil) then
- cRoot:Get():GetPluginManager():ReloadPlugins();
- elseif (Request.PostParams["StopServer"] ~= nil) then
- cRoot:Get():QueueExecuteConsoleCommand("stop");
- elseif (Request.PostParams["WorldSaveAllChunks"] ~= nil) then
- cRoot:Get():GetWorld(Request.PostParams["WorldSaveAllChunks"]):SaveAllChunks();
- end
- Content = Content .. [[
- <form method="POST">
- <table>
- <th colspan="2">Manage Server</th>
- <tr><td><input type="submit" value="Restart Server" name="RestartServer"> restart the server</td></tr> <br />
- <tr><td><input type="submit" value="Reload Server" name="ReloadServer"> reload the server</td></tr> <br />
- <tr><td><input type="submit" value="Stop Server" name="StopServer"> stop the server</td></tr> <br />
- </th>
- </table>
- <table>
- <th colspan="2">Manage Worlds</th>
- ]]
- local LoopWorlds = function( World )
- Content = Content .. [[
- <tr><td><input type="submit" value="]] .. World:GetName() .. [[" name="WorldSaveAllChunks"> Save all the chunks of world ]] .. World:GetName() .. [[</td></tr> <br />
-
- ]]
- end
- cRoot:Get():ForEachWorld( LoopWorlds )
- Content = Content .. "</th></table>"
-
- return Content
-end
-