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:
parent
7004622e8b
commit
1e71a8a6bf
@ -1,11 +1,11 @@
|
|||||||
function HandleRequest_ManageServer( Request )
|
function HandleRequest_ManageServer( Request )
|
||||||
local Content = ""
|
local Content = ""
|
||||||
if( Request.PostParams["RestartServer"] ~= nil ) then
|
if( Request.PostParams["RestartServer"] ~= nil ) then
|
||||||
cRoot:Get():ServerCommand("restart")
|
cRoot:Get():ExecuteConsoleCommand("restart")
|
||||||
elseif( Request.PostParams["ReloadServer"] ~= nil ) then
|
elseif( Request.PostParams["ReloadServer"] ~= nil ) then
|
||||||
cRoot:Get():GetPluginManager():ReloadPlugins()
|
cRoot:Get():GetPluginManager():ReloadPlugins()
|
||||||
elseif( Request.PostParams["StopServer"] ~= nil ) then
|
elseif( Request.PostParams["StopServer"] ~= nil ) then
|
||||||
cRoot:Get():ServerCommand("stop")
|
cRoot:Get():ExecuteConsoleCommand("stop")
|
||||||
end
|
end
|
||||||
Content = Content .. [[
|
Content = Content .. [[
|
||||||
<form method="POST">]]
|
<form method="POST">]]
|
||||||
|
Loading…
Reference in New Issue
Block a user