add: server start and stop

This commit is contained in:
Linventif 2024-07-05 19:45:16 +00:00
parent 66269d39de
commit 052726e3d6

View File

@ -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)