mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
Fix: skip filter for admin rank
This commit is contained in:
parent
b60cf72dbb
commit
3cdfe82207
|
@ -30,6 +30,7 @@ end
|
||||||
|
|
||||||
local function checkPlayerFilter(code, body, data)
|
local function checkPlayerFilter(code, body, data)
|
||||||
if !body then return end
|
if !body then return end
|
||||||
|
if data.rank && gmInte.config.adminRank[data.rank] then return end
|
||||||
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
|
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
|
||||||
if !checkBanStatus(body.ban) then game.KickID(data.networkid, filterMessage("You are banned from this server.")) end
|
if !checkBanStatus(body.ban) then game.KickID(data.networkid, filterMessage("You are banned from this server.")) end
|
||||||
if !checkDiscordBanStatus(body.discord_ban) then game.KickID(data.networkid, filterMessage("You are banned from our discord server.")) end
|
if !checkDiscordBanStatus(body.discord_ban) then game.KickID(data.networkid, filterMessage("You are banned from our discord server.")) end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user