mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:27:34 +00:00
fix: don't allow connection if maintenance on and fail api endpoint
This commit is contained in:
parent
368f7979af
commit
eb2a7a2cf3
|
@ -52,7 +52,7 @@ local function playerFilter(data)
|
|||
|
||||
gmInte.http.get("/players/" .. data.steamID64,
|
||||
function(code, body)
|
||||
if (!gmInte.config.maintenance && !body.bypassMaintenance) then
|
||||
if (gmInte.config.maintenance && !body.bypassMaintenance) then
|
||||
game.KickID(data.networkid, filterMessage("The server is currently under maintenance and you are not whitelisted."))
|
||||
end
|
||||
|
||||
|
@ -68,8 +68,8 @@ local function playerFilter(data)
|
|||
-- game.KickID(data.networkid, filterMessage("Your trust factor is too low."))
|
||||
-- end
|
||||
end,
|
||||
function (err)
|
||||
if (!gmInte.config.maintenance) then
|
||||
function (code, body)
|
||||
if (gmInte.config.maintenance) then
|
||||
game.KickID(data.networkid, filterMessage("The server is currently under maintenance and we cannot verify your account.\nVerification URL: https://verif.gmod-integration.com"))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user