mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:27:34 +00:00
add: server cooldown
This commit is contained in:
parent
9268688cfe
commit
f0f9283341
|
@ -10,6 +10,6 @@ function gmInte.serverShutDown()
|
|||
gmInte.http.post("/servers/:serverID/stop")
|
||||
end
|
||||
|
||||
timer.Create("gmInte.sendStatus", 300, 0, function() gmInte.sendStatus() end)
|
||||
timer.Create("gmInte.sendStatus", 40, 0, function() timer.Simple(math.random(0, 15), function() gmInte.sendStatus() end) end)
|
||||
hook.Add("Initialize", "gmInte:Server:Initialize:SendStatus", function() timer.Simple(1, function() gmInte.serverStart() end) end)
|
||||
hook.Add("ShutDown", "gmInte:Server:ShutDown:SendStatus", function() gmInte.serverShutDown() end)
|
Loading…
Reference in New Issue
Block a user