mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
fix: bypass if discord admin
This commit is contained in:
parent
823bcf9ddc
commit
1d813e0562
|
@ -52,7 +52,7 @@ local function playerFilter(data)
|
||||||
|
|
||||||
gmInte.http.get("/players/" .. data.steamID64,
|
gmInte.http.get("/players/" .. data.steamID64,
|
||||||
function(code, body)
|
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."))
|
game.KickID(data.networkid, filterMessage("The server is currently under maintenance and you are not whitelisted."))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user