diff options
Diffstat (limited to 'MCServer/Plugins/SelfTest/plugin.lua')
-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 |