Fixed /stop command. The console still doesn't get closed though(FS#249).
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1637 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
0ba7a42762
commit
3a6e9983f5
|
@ -1,6 +1,6 @@
|
||||||
function HandleStopCommand( Split, Player )
|
function HandleStopCommand( Split, Player )
|
||||||
Server = cRoot:Get():GetServer()
|
Server = cRoot:Get():GetServer()
|
||||||
Server:SendMessage( cChatColor.Green .. "Stopping the server..." )
|
Server:SendMessage( cChatColor.Green .. "Stopping the server..." )
|
||||||
cRoot:Get():ServerCommand("stop")
|
cRoot:Get():QueueExecuteConsoleCommand("stop")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
Loading…
Reference in New Issue