summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authornielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-06 15:35:04 +0200
committernielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-06 15:35:04 +0200
commit1e71a8a6bf3163d4b972ca44157e3583cd769d76 (patch)
tree5e698f936a0da113b09c563f28d30338daa03fce /MCServer
parentDistortedHeightmap: Small optimizations, memory leak fix. (diff)
downloadcuberite-1e71a8a6bf3163d4b972ca44157e3583cd769d76.tar
cuberite-1e71a8a6bf3163d4b972ca44157e3583cd769d76.tar.gz
cuberite-1e71a8a6bf3163d4b972ca44157e3583cd769d76.tar.bz2
cuberite-1e71a8a6bf3163d4b972ca44157e3583cd769d76.tar.lz
cuberite-1e71a8a6bf3163d4b972ca44157e3583cd769d76.tar.xz
cuberite-1e71a8a6bf3163d4b972ca44157e3583cd769d76.tar.zst
cuberite-1e71a8a6bf3163d4b972ca44157e3583cd769d76.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Core/web_manageserver.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/Core/web_manageserver.lua b/MCServer/Plugins/Core/web_manageserver.lua
index f617eb46a..222736d50 100644
--- a/MCServer/Plugins/Core/web_manageserver.lua
+++ b/MCServer/Plugins/Core/web_manageserver.lua
@@ -1,11 +1,11 @@
function HandleRequest_ManageServer( Request )
local Content = ""
if( Request.PostParams["RestartServer"] ~= nil ) then
- cRoot:Get():ServerCommand("restart")
+ cRoot:Get():ExecuteConsoleCommand("restart")
elseif( Request.PostParams["ReloadServer"] ~= nil ) then
cRoot:Get():GetPluginManager():ReloadPlugins()
elseif( Request.PostParams["StopServer"] ~= nil ) then
- cRoot:Get():ServerCommand("stop")
+ cRoot:Get():ExecuteConsoleCommand("stop")
end
Content = Content .. [[
<form method="POST">]]