diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-05 18:57:53 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-05 18:57:53 +0100 |
commit | 62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441 (patch) | |
tree | 7148b7d9e81055765e019e96df92c548f7dbe7ac /MCServer/Plugins/SelfTest/plugin.lua | |
parent | Improved the signedness conversion. (diff) | |
download | cuberite-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.lua | 20 |
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 |