Added Self Test Plugin
At the moment It just shuts the server down again
This commit is contained in:
parent
9e98c9691d
commit
62c18868b2
20
MCServer/Plugins/SelfTest/plugin.lua
Normal file
20
MCServer/Plugins/SelfTest/plugin.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user