summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-02-05 18:57:53 +0100
committerTycho <work.tycho+git@gmail.com>2014-02-05 18:57:53 +0100
commit62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441 (patch)
tree7148b7d9e81055765e019e96df92c548f7dbe7ac
parentImproved the signedness conversion. (diff)
downloadcuberite-62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441.tar
cuberite-62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441.tar.gz
cuberite-62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441.tar.bz2
cuberite-62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441.tar.lz
cuberite-62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441.tar.xz
cuberite-62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441.tar.zst
cuberite-62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/SelfTest/plugin.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/MCServer/Plugins/SelfTest/plugin.lua b/MCServer/Plugins/SelfTest/plugin.lua
new file mode 100644
index 000000000..3822b9ba1
--- /dev/null
+++ b/MCServer/Plugins/SelfTest/plugin.lua
@@ -0,0 +1,20 @@
+
+function Initialize(Plugin)
+ Plugin:SetName("SelfTest")
+ Plugin:SetVersion(1)
+
+ cPluginManager.AddHook(cPluginManager.HOOK_WORLD_STARTED, OnWorldStarted)
+
+ LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
+ return true
+end
+
+
+
+
+
+function OnWorldStarted(World)
+ LOG("Stopping")
+ cRoot:Get():QueueExecuteConsoleCommand("stop");
+ return false
+end