1
0

Added Self Test Plugin

At the moment It just shuts the server down again
This commit is contained in:
Tycho 2014-02-05 09:57:53 -08:00
parent 9e98c9691d
commit 62c18868b2

View File

@ -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