summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/stop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/Core/stop.lua')
-rw-r--r--MCServer/Plugins/Core/stop.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/stop.lua b/MCServer/Plugins/Core/stop.lua
new file mode 100644
index 000000000..0a06fc7d3
--- /dev/null
+++ b/MCServer/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