Bans
On this page3
What a banned player reads, and whether a ban also blocks the player's PC. Both keys are in config.lua.
| Key | Default | Allowed | What it changes in game |
|---|---|---|---|
Config.BanMessage | 'You are banned from this server.\nReason: %s' | Any text with one %s | The text a banned player reads: at the moment of the ban, and at every try to join. %s becomes the reason. \n starts a new line. |
Config.BanHardware | true | true / false | true = a ban blocks the account and the PC. false = a ban blocks the account only. |
The ban text
A player with a ban that has an end date reads this when they try to join:
Code
You are banned from this server.
Reason: Cheating
Banned until: 2026-11-01 18:30- The first two lines are
Config.BanMessage. - The panel adds the "Banned until" line by itself. A permanent ban has no such line. Its text is in the locale file. See Localization.
- A ban without a reason shows "No reason given".
- The date and time come from the clock of your database.
Ban by PC
Config.BanHardware = true | Config.BanHardware = false | |
|---|---|---|
| The banned account | Blocked | Blocked |
| A new account on the same PC | Blocked. It reads the same ban text. | Gets in |
| Other people who play on that PC | Blocked too | Get in |
| Log line when a banned PC is refused | Yes | No |
With true:
- A ban made while the player is online knows the PC at once.
- A ban made while the player is offline does not know the PC yet. It learns the PC at the player's next try to join with the banned account.
- When a banned PC is refused, staff find a line with the tag
/banevadeon the Logs page. The server console prints[5code-adminpanel] Refused <name>: this PC is banned (ban #12).Somebody who keeps trying does not fill the log. - Revoking the ban, or the end of its time, frees the account and the PC.
Several players on one PC
Brothers and sisters, flatmates, an internet cafe: with true, a ban of one of them locks out
everybody who plays on that PC. They read the ban text of the banned player.
| You want | Do this |
|---|---|
| Let the others play again | Revoke the ban on the Bans page. The banned player can then join again too. |
| Never block by PC | Set Config.BanHardware = false and restart the resource. Bans then hold by account only. |
Related: Bans & Warns · Discord Webhooks · Troubleshooting.