mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +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())
|
gmInte.http.post("/servers/:serverID/status", gmInte.getServerFormat())
|
||||||
end
|
end
|
||||||
|
|
||||||
-- function gmInte.serverStart()
|
function gmInte.serverStart()
|
||||||
-- gmInte.http.post("/start", gmInte.getServerFormat())
|
gmInte.http.post("/servers/:serverID/start", gmInte.getServerFormat())
|
||||||
-- end
|
end
|
||||||
|
|
||||||
function gmInte.serverShutDown()
|
function gmInte.serverShutDown()
|
||||||
gmInte.http.post("/servers/:serverID/shutdown")
|
gmInte.http.post("/servers/:serverID/shutdown")
|
||||||
|
@ -28,8 +28,7 @@ end)
|
||||||
|
|
||||||
hook.Add("Initialize", "gmInte:Server:Initialize:SendStatus", function()
|
hook.Add("Initialize", "gmInte:Server:Initialize:SendStatus", function()
|
||||||
timer.Simple(1, function()
|
timer.Simple(1, function()
|
||||||
-- gmInte.serverStart()
|
gmInte.serverStart()
|
||||||
gmInte.sendStatus()
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user