mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 17:47: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)
|
||||
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 !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
|
||||
|
|
Loading…
Reference in New Issue
Block a user