From 1e71a8a6bf3163d4b972ca44157e3583cd769d76 Mon Sep 17 00:00:00 2001 From: "nielsbreu@gmail.com" Date: Mon, 6 May 2013 13:35:04 +0000 Subject: Fixed the stop and restart button in the manage server tab. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1450 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Core/web_manageserver.lua | 4 ++-- 1 file 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 .. [[
]] -- cgit v1.2.3