Skip to Content
ModulesStats and punishments

Punishments

The Sentinel module: bans, mutes, gags, kicks and warnings on every server and on the site, a public ban list, and a link with the databases of SourceBans++, AMXBans, LiteBans and other admin systems.

With this module every ban, mute and gag of the project lives in one journal. A moderator issues a punishment from the player card, the site sends it to the right servers through GameLink or writes it into the server's admin system database, and a ban an admin gives in the game comes back to the site. Players see a public punishment list and can appeal their own.

The public list is at /bans, and every punishment has its own page /bans/<number> with its history and evidence. Studio gets the "Latest punishments" and "Punishment numbers" blocks. The player card gains a "Punishments" tab, and the server page an "Admin system" tab.

The public punishment list with the summary and filters
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0; optionally Rewards, Rules, Migrationservers with the GameLink plugin and servers whose ban system the site reads from its databaseadmin.sentinel, admin.sentinel.punish, admin.sentinel.lift, admin.sentinel.edit, admin.sentinel.view, admin.sentinel.settings, admin.sentinel.sources"Latest punishments", "Punishment numbers"/profile, /punish, /unpunish"Expiry of punishments" and "Sync with admin system databases", every minute

Install and first setup

Install the module from the marketplace as described in first steps; every install option is in Installing modules. The admin menu gains a "Punishments" row in the "Players" group, with the tabs "Journal", "Ban databases", "Punishment reasons", "Role limits" and "Settings": AdminPunishmentsJournal.

Start with "Punishment reasons". Each reason sets the "Punishment type", the "Reason" text the player sees, the "Default term" and the "Term limit". Without reasons, a moderator writes the reason and the term by hand. "Rule" takes the number of a rule clause, for example 3.2. With the Rules module installed you do not type it: the clause is picked from the list of rule clauses, and a punishment for the reason takes the term of that clause's ladder. The field may stay empty. "Can be bought out" lets the player lift such a punishment with the "Unban" reward of the Rewards module.

Then open "Role limits". Until you add rows of your own, every role follows the "Default" row: any type, "One server", terms up to 7 days, nothing permanent, no own reason, and only one's own punishments. "Set up a role" gives a role its "What can be issued", "Where a punishment applies", "Term limit", "Permanent punishments", "Own reason and term", "Others' punishments" and "Punishments per day". The site owner has no limits.

Ban a player from the site

Example: a player cheats on two CS2 servers and has to be banned on both for a week.

Open the player card

Open the player in AdminPlayers, go to the "Punishments" tab and click "Punish". You can also start on the "Journal" tab: click "Punish a player", find the player by nickname or SteamID in the "Who to punish" window and click "Next".

Fill in the form

In "Type" pick "Ban", and tick both servers in "Servers". Pick a ready reason in "Reason", and the term comes from it. If your role may use its own reason, pick "Own reason", write the "Reason text" and set the "Term": above the field are preset term buttons, and "Permanent" is there when your role may punish permanently. "Link to a video or screenshot" and "Note for staff" are under "Evidence and note".

The "What will happen" block at the bottom shows what the site will do. "Where it goes" reads "A command to 2 servers" with their names, plus "A row in the admin-system database" when a server has its admin system database connected. For a player without a site account, "The player" says "no notification will arrive and they cannot appeal". Click the button at the bottom of the form; its label follows your choice, for example "Ban for …".

The Punish window with the What will happen block

Make sure the ban arrived

Open the punishment page. The "On servers" block lists every server as "Waiting for the server", "Sent to the server", "Delivered" or "Not delivered" with the plugin's answer, for example "The player is not on the server" or "The server plugin cannot do this. Update the plugin". A failed delivery has "Retry delivery".

The On servers block on a punishment page

The site queues a command for each server the punishment applies to. The GameLink plugin picks it up on its next sync, carries it out through the server's admin plugin or its own ban list, and answers the site. A ban goes out as the ban.apply action, a voice mute as comms.mute, a chat mute as comms.gag, a chat and voice mute as two commands, and a kick as player.kick. A lift sends ban.lift or comms.unblock. What each game's plugin does is on the pages for CS2, Source games, CS 1.6 and the other games, and every command the site sends is listed in deliveries.

A player with a site account gets the "You have been punished" notice. When a punishment does not reach a server, the issuer gets "A punishment did not reach a server". A punishment with the "Site only: no posting" scope is not sent to any server: the player cannot post on the site.

Punishments issued on a server

The GameLink plugin reports the bans, mutes and gags an admin gives in the game. By default "Punishments issued on a server" is set to "Record", and such a punishment shows up in the journal with the source "game". The site does not record kicks or warnings from the game.

Where it applies is decided by "Where a punishment from the in-game menu applies": "This server", "Its group" or "All servers". With a group or all servers, the site sends the ban to the other servers of that scope, and the server it came from gets no command. The admin's name comes from the plugin's report and is never tied to a site account. A punishment of a player the site did not know before stays out of the public list.

An unban in the game lifts only that server's own punishment. To have it lift a group or every-server ban as well, switch on "An unban in the game lifts a wider ban too". What your game's plugin reports is on its page: the CS 1.6 plugin, for one, sends no unbans.

Connect a ban system database

If the server already runs SourceBans++, AMXBans, LiteBans or another admin system, the site reads punishments straight from its database. The whole history lands in the journal, and with the owner's leave the site writes to that database too.

Connect the database on the Plugins tab

Open the server in AdminServers, go to the "Plugins" tab, click "Connect a plugin" and pick the admin system. Fill in the database connection and click "Test and connect". The details are in server plugins. If your system is not listed, pick "Another plugin" and type its key from the table below.

Wait for the sync and match the server

Go to the "Admin system" tab. It first says "Connected, the first sync has not run yet", then "Connected" once the first sync is done. The first import reads the whole history without pauses, and "History import" shows how far it got. "Sync punishments" starts a sync right away.

When one database serves several servers, click "Match the server and the prefix" and pick the "Server in the admin system". Until it is picked, a punishment "on this server" is not written to the database. The same window holds the "Table prefix" and the "Plugin time zone", for a plugin that writes times in a zone other than the database's.

The Admin system tab on a server page

Turn on writing if you need it

Right after connecting, the site only reads the database and "Mode" says "Read only". Only the site owner sees "Allow writing to the admin system's database", and the site asks them to confirm their login again. From then on the site's bans and mutes are written to the database: issuing, a new term and lifting. "Leave reading only" turns writing off.

The "What the site does with this admin system" table on the tab shows what the site reads, when the server notices a row written by the site, and how a group punishment is written. A ban written only to the database takes effect when the admin system reads it; the Flute plugin on the server kicks at once. When the database is connected to the server under another plugin's name, the site looks inside and shows "Found in the connections" with a "Connect the admin system" button. Every connection is listed on the "Ban databases" tab, AdminPunishmentsBan databases, where a server without one shows "Not connected" and a "Connect database" button.

GameAdmin systemKeyWriting from the site
CS2CS2-SimpleAdmin, Iks_Admin, AdminSystem (Pisex), AdminSystem 2024 (cs2-bans), K4-Zenith Bans, SwiftlyS2 AdminsSimpleAdmin, IKS, AdminSystem, AdminSystemLegacy, ZenithBans, SwiftlyAdminsyes
CS2, Source games, Garry's ModSourceBans++, MaterialAdminSourceBans, MaterialAdminyes
CS 1.6AMXBans (bans), CA Gag (mutes and gags)Amx, ChatAdditionsyes
Garry's ModxAdminxAdminyes
MinecraftAdvancedBanAdvancedBanyes
MinecraftLiteBans, LibertyBans, BanManagerLiteBans, LibertyBans, BanManagerread only
RustEnhanced Ban SystemEnhancedBansread only
FiveM, RedMFiveM-BanSqlBanSqlread only

What players see

On /bans punishments are split into the "Bans", "Mutes", "Other" and "All" tabs, with a "Nickname or SteamID" search, server and status filters, and a summary of "Bans in force", "Mutes in force", "In 24 hours", "In 7 days" and "Lifted". A signed-in player sees the "Your account" block with their punishments in force. Warnings are hidden from everyone else by default.

When the Tickets module has an appeals category, a punishment in force gets an "Appeal" button. It leads to the request form of that category, and the case number and reason are filled in for the player. While the request is open, the punishment is marked "Under appeal".

The "Latest punishments" Studio block lists the latest public punishments, with the fields "Title", "Which punishments" ("Bans", "Mutes", "Other", "All", bans by default) and "How many" from 1 to 12, 6 by default. "Punishment numbers" shows the summary numbers. When the list is closed to guests, guests do not see the block.

The "Punishments" tab is always on the admin player card. On the player's page on the site it appears when there is something to show, and in the profile every player who has played on the servers has it.

Bots and rewards

/profile shows a player's card: the site account and when they first and last joined the servers, plus a "Bans" line for staff with admin.sentinel.view. /punish issues a punishment by a ready reason: the player, a reason from the suggestions and "Where" (a server or all servers), with a confirmation. /unpunish lifts a punishment by its number. Both need Telegram or Discord linked to a site account, and admin.sentinel.punish and admin.sentinel.lift respectively. Setting up the bot is covered in bots.

With the Rewards module there is an "Unban" reward. It lifts the buyer's punishments in force that are marked "Can be bought out", bans only by default. The types parameter widens the list: ban,mute,gag,silence.

Settings

Settings live in AdminPunishmentsSettings and need admin.sentinel.settings together with the site settings permission admin.system.

Settings of the Punishments module
FieldWhat it changesDefault
"Public punishment list"when off, only staff can see the liston
"Show the list to guests"when off, guests are asked to sign inon
"Show who issued it"the issuer's name in the list; staff always see iton
"Hide warnings"only the player and staff see warningson
"To the player: a punishment was issued", "To the player: the term or the reason changed", "To the player: the punishment was lifted"notices to a player with a site accounton
"To the issuer: the punishment did not reach a server"a notice to the moderator about a failed deliveryon
"Punishments issued on a server""Record" or "Do not accept""Record"
"Where a punishment from the in-game menu applies""This server", "Its group", "All servers""This server"
"Sync with admin system databases"reading and writing the connected ban databaseson
"When a punishment was changed both on the site and on the server""The later one" or "The site decides""The later one"
"Where a row "for every server" of a database stands""On the servers of that database" or "On every server""On the servers of that database"

admin.sentinel covers issuing, lifting, editing and viewing within the role limit, and admin.sentinel.view opens staff notes, restricted evidence and delivery. Admin system databases are set up with admin.sentinel.sources.

For developers

A module adds its own admin system through the Flute\Modules\Sentinel\Contracts\AdminSystem contract: the driver registers from boot() with app(Services\AdminSystems::class)->register(new MyDriver()) and shows up in the "Connect a plugin" wizard under its key.

The sentinel.punishment.issued, sentinel.punishment.lifted and sentinel.punishment.expired events carry the punishment number, the player and the type, and go out as the webhooks "Punishment issued", "Punishment lifted" and "Punishment expired". sentinel.staff.warned fires when a staff member gets a warning. A tickets module sets where the "Appeal" button leads through Services\AppealLinks::linkUsing().

The REST API gives punishments read-only: GET /api/v1/sentinel-punishments with an API key holding the sentinel-punishments:read scope. Filters are type, status, playerId, scope, scopeId and ruleRef. Staff notes and evidence are not in the answer.

How the core side works: Events and listeners, API keys and the REST API, Module REST API, Another module in the provider, Extension points.

Troubleshooting

For any other message, use the error lookup.

Takes no punishments: no Flute plugin and no admin-system base connected.

The server sits in the "No link" line of the "On servers" block, and the punishment never went there. Install the GameLink plugin from your game's page, or connect the admin system database on the "Plugins" tab.

MessageWhat to do
"Permanent punishments are not available to you.", "This term is not available to you."the role limit caps the term, change it in "Role limits"
"The player already has this punishment in force. Change its term or lift it."open the punishment in force and change its term
"The database does not answer: check the address, the account and access from the site in the "Plugins" tab"the database does not let the site in, check the connection on the "Plugins" tab
"The database has no table …: it is not this admin system's database, or the table prefix differs"point to the right database or fix the "Table prefix"
"Not written: it is not set which server of the admin system this is"pick the "Server in the admin system" in "Match the server and the prefix"
"Not written: the admin system has no "Console" admin"the site writes as the console the admin system's plugin creates for itself on install; check that this row is in its admins table

Next

On this page