AB

Afterban

Ban customization

Afterban is an add-on module for Superban that handles how a punishment is presented. It fires after a ban is successfully recorded and controls what players see before the kick.

Afterban announces the punishment in chat and the HUD, shows the reason and duration, freezes the banned player, strips their weapons, and can take several screenshots of their screen.

Features

  • Ban messages. Punishment info is shown to every player in chat, the HUD, or both at once.

  • Reason and duration. The message shows the player's name, the reason for the punishment, and the ban's length.

  • Admin name. You can show who issued the ban or hide the admin's name.

  • Configurable HUD. The message's position and color are set in superban_afterban.cfg.

  • Customization. The prefix and every message can be adapted to match the project's style.

  • Disarming and freezing the player. A banned player has their weapons stripped, loses the ability to move, and stays in place until the kick.

  • Screenshots. Afterban runs the snapshot command on the banned player's client. The number of screenshots is configurable or can be turned off entirely.

  • Reconnecting with an active ban. If Superban detects an active ban on connect, Afterban announces it to the other players, freezes the offender, and strips their weapons before the kick.

  • Localization. Messages support Russian and English through the superban_afterban.txt file.

How it works

Afterban never creates bans or checks players on its own. Once a ban is successfully recorded, Superban passes the module information about the player, the admin, the reason, and the punishment's duration.

Afterban then:

  1. Shows the configured message.

  2. Triggers the screenshots.

  3. Strips the player's weapons.

  4. Freezes the player.

If Afterban isn't installed, Superban keeps working on its own and uses its default ban message.