Fix: skip filter for admin rank

This commit is contained in:
Linventif 2024-09-15 17:04:59 +00:00
parent b60cf72dbb
commit 3cdfe82207

View File

@ -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