62c18868b2
At the moment It just shuts the server down again
21 lines
366 B
Lua
21 lines
366 B
Lua
|
|
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
|