Prison System (Player Punishment Module)
The Prison System is AtomicBotβs built-in punishment feature. When a player is flagged as a prisoner, they lose access to key bot features and are forcibly teleported to your designated prison location every time they log in. Admins can add, release, and manage prisoners entirely through Discord.
How the System Works
- Players added to the
rust_prisonerstable are marked as active prisoners. - When they join the server, AtomicBot immediately teleports them to the prison coordinates.
- Other bot features detect prisoner status and automatically deny access.
- Admins manage everything through the
/prisoncommand.
All enforcement happens automatically. Once flagged, the bot does the rest.
Prison Modes
AtomicBot supports two levels of punishment, toggled via /prison mode.
πΈ Basic Mode
- Player is teleported to prison on every login.
- All other bot systems still function normally.
π΄ Advanced Mode
- Teleport enforcement (same as basic)
- Snag-A-Whip disabled β player cannot spawn vehicles
- Kits disabled β both βI Needβ & βI Haveβ emote kits
- Claims disabled β BattlePass and shop delivery blocked
All handlers check isImprisoned() before completing actions.
Automatic Join Enforcement
When a flagged prisoner joins the server, the watcher immediately teleports them to the prison coordinates:
"Atomic0utlaw-_- [PS5] has entered the game" β global.teleportpos X,Y,Z "Atomic0utlaw-_-"
There is no bypass. The only way out is for an admin to release them.
Features Blocked for Prisoners
These systems include a prison check and will refuse to complete actions if a player is imprisoned:
- Snag-A-Whip β funny denial messages instead of vehicles
- I Need kits β kit distribution blocked
- I Have kits β VIP tools blocked
- Reward Claiming β BattlePass + shop delivery blocked
Additional systems can be added later (teleports, gambling, ZORP interactions).
Admin Commands
All commands require the serverβs configured Admin Role.
/prison toggle
Enable or disable the entire system.
/prison mode
Switch between Basic and Advanced punishment.
/prison setcoords
Set the teleport destination for prisoners.
/prison add <player>
Flag a player as imprisoned.
/prison release <player>
Unflag a prisoner and restore full bot access.
/prison list
View all active prisoners.
Database Tables
The Prison System uses two key tables:
guild_servers ββ prison_enabled (0/1) ββ prison_x / prison_y / prison_z ββ prison_mode (basic / advanced)
rust_prisoners ββ guild_id ββ player_name ββ active (1 = in prison) ββ timestamps
Troubleshooting
- Player is not teleported β Coordinates not set.
- Prison mode not applying β System disabled via
/prison toggle. - Player still gets kits/whips β Check if mode is set to advanced.
- Snag-A-Whip still works β Prison check missing in custom handler.