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-c427514a06d6
master
nielsbreu@gmail.com 2013-07-01 11:42:59 +00:00
parent 0ba7a42762
commit 3a6e9983f5
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
function HandleStopCommand( Split, Player )
Server = cRoot:Get():GetServer()
Server:SendMessage( cChatColor.Green .. "Stopping the server..." )
cRoot:Get():ServerCommand("stop")
cRoot:Get():QueueExecuteConsoleCommand("stop")
return true
end