1
0

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
This commit is contained in:
nielsbreu@gmail.com 2013-05-06 13:35:04 +00:00
parent 7004622e8b
commit 1e71a8a6bf

View File

@ -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">]]