Move exempt util to anticheat js

This commit is contained in:
Vortrex
2021-12-26 11:47:25 -06:00
parent 3d96bee906
commit 420480c2f8

View File

@@ -236,4 +236,16 @@ function toggleAntiCheatScriptBlackListCommand(command, params, client) {
messageAdminAction(`${getPlayerName(client)} {MAINCOLOUR}turned anticheat game script blacklist ${getBoolRedGreenInlineColour(getServerConfig().antiCheat.gameScriptBlackListEnabled)}${toUpperCase(getOnOffFromBool(getServerConfig().antiCheat.gameScriptBlackListEnabled))}`);
updateServerRules();
return true;
}
}
// ===========================================================================
function isPlayerExemptFromAntiCheat(client) {
if(hasBitFlag(getPlayerData(client).accountData.flags.moderation, getModerationFlagValue("ExemptFromAntiCheat"))) {
return true;
}
return false;
}
// ===========================================================================