From 2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Thu, 12 Jul 2012 18:11:28 +0000 Subject: Missed a file Patched the server to allow shutdown from other threads git-svn-id: http://mc-server.googlecode.com/svn/trunk@657 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- Plugins/Core/stop.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Plugins/Core/stop.lua (limited to 'Plugins') diff --git a/Plugins/Core/stop.lua b/Plugins/Core/stop.lua new file mode 100644 index 000000000..0a06fc7d3 --- /dev/null +++ b/Plugins/Core/stop.lua @@ -0,0 +1,6 @@ +function HandleStopCommand( Split, Player ) + Server = cRoot:Get():GetServer() + Server:SendMessage( cChatColor.Green .. "Stopping the server..." ) + cRoot:Get():ServerCommand("stop") + return true +end \ No newline at end of file -- cgit v1.2.3