Bans

Local bans

All your local bans, which means the bans given on your server will be saved in resource rac -> banData -> bans.json.

In case you want to unban someone there are more ways to remove him from the anticheat ban list:

Unban from in game menu

  1. To unban a specific player from anticheat ban list, you can use in game menu Unban player from Bans options (Recommended)

  2. To unban all players from anticheat ban list, you can use in game menu Unban all from Self options, in the right side of the in game menu

Unban from server console

  1. To unban a specific player from anticheat ban list, you can type in server console racunban <Id>. Check Commands section for more information about racunban <Id> command

  2. To unban all players from anticheat ban list, you can type in server console racunban all. Check Commands section for more information about racunbanall command

Unban from bans.json file (Use this methods only in case you know what are you doing because you have to keep the json format without errors)

  1. Delete the ban from bans.json for the player you want to unban

  2. Delete all bans and keep only the brackets from initial file

This is how bans.json file looks without any ban:

[]

or

[
]

Can I use the ban system on my server?

Yes, you can use the ban system on your server too by using following exports:

exports['rac']:racBanDiscordLog(source, reason) -- if you also want to discord log
exports['rac']:AddPlayerToBanList(source, reason)

where, source is the player source and instead of reason you can add your text reason. The discord log will be sent to the ban webhook set in webhooks file of anticheat resource and the bans will be added to the bans.json file of anticheat resource

Example of usage (1)

exports['rac']:racBanDiscordLog(source, "Cheating and trolling")
exports['rac']:AddPlayerToBanList(source, "Cheating and trolling")

Example of usage (2)

local reason = "Cheating and trolling"
exports['rac']:racBanDiscordLog(source, reason)
exports['rac']:AddPlayerToBanList(source, reason)

Last updated