mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 17:17:33 +00:00
add: server start and stop
This commit is contained in:
parent
66269d39de
commit
052726e3d6
|
@ -6,9 +6,9 @@ function gmInte.sendStatus()
|
|||
gmInte.http.post("/servers/:serverID/status", gmInte.getServerFormat())
|
||||
end
|
||||
|
||||
-- function gmInte.serverStart()
|
||||
-- gmInte.http.post("/start", gmInte.getServerFormat())
|
||||
-- end
|
||||
function gmInte.serverStart()
|
||||
gmInte.http.post("/servers/:serverID/start", gmInte.getServerFormat())
|
||||
end
|
||||
|
||||
function gmInte.serverShutDown()
|
||||
gmInte.http.post("/servers/:serverID/shutdown")
|
||||
|
@ -28,8 +28,7 @@ end)
|
|||
|
||||
hook.Add("Initialize", "gmInte:Server:Initialize:SendStatus", function()
|
||||
timer.Simple(1, function()
|
||||
-- gmInte.serverStart()
|
||||
gmInte.sendStatus()
|
||||
gmInte.serverStart()
|
||||
end)
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user