summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/SelfTest/plugin.lua
blob: 3822b9ba1ee4411e85e78dba3c2ee1f673de31dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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