fix: bypass if discord admin

This commit is contained in:
Linventif 2024-03-29 15:33:31 +01:00
parent 823bcf9ddc
commit 1d813e0562
No known key found for this signature in database
GPG Key ID: FAC0CA60F9AEEC24

View File

@ -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 && !body.discordAdmin) then
game.KickID(data.networkid, filterMessage("The server is currently under maintenance and you are not whitelisted."))
end