From 62c18868b2f01b5a7c2b4a4b5dc4c8ac6bc6d441 Mon Sep 17 00:00:00 2001 From: Tycho Date: Wed, 5 Feb 2014 09:57:53 -0800 Subject: [PATCH] Added Self Test Plugin At the moment It just shuts the server down again --- MCServer/Plugins/SelfTest/plugin.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 MCServer/Plugins/SelfTest/plugin.lua 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