refact: remove cmd refresh

This commit is contained in:
Linventif 2025-05-27 18:55:21 +00:00
parent f7dbb0250d
commit 6ceeaf1535
2 changed files with 0 additions and 8 deletions

View File

@ -3,7 +3,6 @@ local conFuncs = {
["set-setting"] = function(args) gmInte.saveSetting(args[2], args[3]) end,
["show-settings"] = function() PrintTable(gmInte.config) end,
["try"] = function() gmInte.tryConfig() end,
["refresh"] = function() gmInte.refreshSettings() end,
["get-server-id"] = function() print(gmInte.config.id || "none") end,
["export-warns"] = function() hook.Run("GmodIntegration:ExportWarns") end
}
@ -18,7 +17,6 @@ local function cmdExecuted(ply, cmd, args)
print("set-setting <setting> <value>")
print("show-settings")
print("try")
print("refresh")
print("get-server-id")
print("export-warns")
end

View File

@ -42,12 +42,6 @@ function gmInte.testConnection(ply)
gmInte.http.get("/servers/:serverID", function(code, body) if ply then gmInte.SendNet("testApiConnection", body, ply) end end, function(code, body) if ply then gmInte.SendNet("testApiConnection", body, ply) end end)
end
function gmInte.refreshSettings()
gmInte.config = util.JSONToTable(file.Read("gm_integration/config.json", "DATA"))
gmInte.log("Settings Refreshed")
gmInte.tryConfig()
end
function gmInte.superadminGetConfig(ply)
if !ply:IsValid() || !ply:IsPlayer(ply) || !ply:gmIntIsAdmin() then return end
gmInte.config.websocket = GWSockets && true || false