summaryrefslogtreecommitdiffstats
path: root/Plugins/Core
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-12 20:11:28 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-12 20:11:28 +0200
commit2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f (patch)
tree74497073dedfdb457e1f49c682c9270668aec349 /Plugins/Core
parenthttp://www.mc-server.org/support/index.php?do=details&task_id=153 (diff)
downloadcuberite-2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f.tar
cuberite-2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f.tar.gz
cuberite-2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f.tar.bz2
cuberite-2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f.tar.lz
cuberite-2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f.tar.xz
cuberite-2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f.tar.zst
cuberite-2f3dc0300534b8ca3fa4bf8d57bfa886b1df4c2f.zip
Diffstat (limited to 'Plugins/Core')
-rw-r--r--Plugins/Core/stop.lua6
1 files changed, 6 insertions, 0 deletions
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