Sentinel
Docs/Sentinel

Sentinel

All-in-one moderation and staff toolkit: automatic chat, sign, book, anvil and voice filtering, punishment ladders with case IDs, staff mode with vanish and freeze, reports, a floating player card, inventory restore, Discord logging and a web API.

Requirements

  • Paper (or a fork) 1.21+, Java 21. Folia is supported. Sentinel is built against Paper 1.21.11.
  • A valid license key
  • Optional: PlaceholderAPI, LuckPerms, GrimAC, TotemGuard, Simple Voice Chat, TAB, Redis
  • Dialog menus need a 1.21.6+ client. Older clients get chest menus automatically.

Installation

  1. Drop Sentinel.jar into plugins/.
  2. Start the server once to generate the config files in plugins/Sentinel/.
  3. Put your license key in config.yml under license-key.
  4. Restart. Use /sentinel reload after editing configs.

Storage is SQLite by default and needs no setup. For several servers sharing data, set up MySQL in data/database.yml and Redis in config.yml. Database, Redis and connection-pool libraries are downloaded automatically on first start.

Features

  • Content filtering. Chat, signs, books and anvil names are checked against word lists in English, German, Spanish and French. Optional AI second check for text and optional speech-to-text moderation for Simple Voice Chat.
  • Punishments. Warn, mute, kick, ban, IP ban and voice ban. Repeat offenses climb a ladder per category, every punishment gets a public case ID such as B-7K2M9Q, and every menu is a Paper dialog with a chest menu fallback.
  • Cases. Open any case with /case, add staff notes, expire it, change its time or delete it. Cases can be posted to Discord forum channels.
  • Staff mode. A kit of tools (punish, inspect, spectate, random teleport, freeze, vanish), vanish, freeze, staff chat and a status action bar. Staff mode survives a relog or restart and returns you to where you started. Shared across servers over Redis.
  • Player card. Shift or sprint plus left-click a player in staff mode to open a floating card that only you can see, with punishments, reports, notes, live activity, client and location. A shift + right-click quick menu offers a ring of fast actions.
  • Suspects. /sus ranks online players by recent GrimAC and TotemGuard flags. Ore alerts and bait structures help catch x-ray.
  • Reports. Players report with /report; staff review them from /reports, teleport to the player, punish or resolve.
  • Investigation. Player lookup with staff notes and a watchlist, chat, command, sign, book and anvil logs, linked-account detection (IP addresses are never shown), live /invsee and /ecsee.
  • Inventory restore. Automatic snapshots of inventory, ender chest, XP, effects and containers, with restore, give, export and teleport.
  • Server protection. Lockdown, anti-bot join protection, new-player limits, ChatGuard (flood, advertising, caps, repeat), command whitelist and item or block restrictions.
  • Utilities. Teleport commands, shortcut commands, custom ender chest with up to 6 rows, /heal, /fly, /sudo, /recipes, bait structures, inventory copy.
  • Integrations. Discord webhooks and forum posts, Discord account linking for any bot, a signed web API with event callbacks, a Java API and PlaceholderAPI placeholders.

Commands

Add -o to a menu command to open the classic chest menu instead of the dialog. Durations accept 30m, 1h, 3d, perm. Add -p to a punishment command to announce it publicly.

Punishments

Command Aliases Description
/punish <player> [category] [-p] Open the punish menu, or punish directly by category. The punishment is picked from the player's history using the ladder in punishments.yml.
/warn <player> [reason...] Warn a player.
/mute <player> <reason...> [duration] [-ip] [-p] Mute a player.
/unmute <player> [reset] [reason...] Remove a mute. reset also resets the offense count.
/kick <player> [reason...] Kick a player.
/ban <player> <reason...> [duration] [-ip] [-p] /tempban Ban a player.
/banip <player|ip> <reason...> [duration] [-p] /ipban, /tempbanip Ban a player's IP or a raw IP.
/unban <player|ip> [reset] [reason...] /unbanip Remove a ban.
/voiceban <player> <reason...> [duration] [-p] /vban Ban a player from voice chat.
/voiceunban <player> [reset] [reason...] /unvoiceban, /vunban Remove a voice ban.
/history <player> [page] /hist A player's punishment history.
/staffhistory <staff|console> [filters...] /staffhist, /shistory Punishments and audit actions by one staff member or the console.
/activepunishments [staff|console] /activepunish, /apuns, /punishlist Browse all active punishments.
/bannedonline /onlinebans List online players with an active ban.
/punishinfo <id|player> /pinfo, /punishmentinfo Show a punishment by ID, or a player's latest active ban, mute or voice ban.
/case <id|player> [expire|time <duration>|note <text...>|history|delete confirm] /casedetails, /pcase, /punishcase Open a case with details, notes and actions. delete confirm permanently deletes the punishment (needs sentinel.staffmode.history.delete).
/casenote <case id> <text> /cnote Add a staff note to a case.
/myban Show your own active ban details.
/punishbulk <staff|console> <revoke|delete> [confirm] /bulkpunishments Preview, then bulk revoke or delete the punishments issued by one staff member or the console.
/fixpunishment <id|player> /repairpunishment Repair punishments stuck in the wrong state.
/alts <player> Linked accounts of a player.
/clearalts <player> /unlinkalts Clear a player's linked-account history.
/ipreport Online players grouped with their linked accounts and punishment status.

/ban, /banip and /unban also accept raw IP addresses.

Console-only maintenance

Command Aliases Description
/repairpunishments [confirm] /fixpunishments Repair every inconsistent punishment.
/punishresetall [confirm] /punishmentresetall, /resetallpunishments Reset every punishment and offense count.
/wipestaffdatabase [confirm] /staffdbwipe, /punishmentdbwipe Permanently delete all punishment, audit and fingerprint data.
/purgestaffplayer <player> [confirm] /staffpurgeplayer Permanently delete one player's punishment, audit and fingerprint data.
/clearallalts [confirm] /unlinkallalts Clear all linked-account history.
/autoban <grim|totemguard> <player> <duration> <reason...> Apply an automatic anticheat ban. Put it in the punishment command of GrimAC or TotemGuard.
/anticheatbc <player> Announce once that a banned player was removed for cheating.

The destructive commands ask for confirm and also require sentinel.admin.

Staff mode and tools

Command Aliases Description
/staffmode [player] /sm, /modmode, /mod Toggle staff mode for yourself or another staff member.
/vanish /v Toggle vanish.
/freeze <player> Freeze or unfreeze a player.
/hidestaff [player] /showstaff Toggle whether you (or a target) can see vanished staff.
/randomtplogs [staff] /rtplogs Browse the random teleport audit log.
/playercard <player> /pcard, /card Open the player card of an online player.
/quickmenu [ring|card] /qm Pick what shift + right-click on a player opens.
/invsee <player> /isee, /inspect Live view of a player's inventory. Offline players show their latest snapshot.
/ecsee <player> /endersee, /ecview Live view of a player's ender chest.
/sus [legacy|modern] Online players ranked by recent GrimAC and TotemGuard flags.
/togglestaff /tstaff Choose which staff alerts and messages you receive.
/menustyle [modern|legacy] /menus, /uistyle Pick dialog screens or classic chest menus for your staff menus.
/sc [message] /staffchat Send a message to staff chat, or toggle staff chat mode.
/achat [message] /adminchat, /ac Admin chat.
/frozenchat [message] Message the currently frozen players.
/cpto <player> /copyto, /copyinvto, /copyinventoryto Send a copy of your inventory to a player.
/cpfrom <player> /copyfrom, /copyinvfrom, /copyinventoryfrom Pull a copy of a player's inventory into yours.
/spawnstash Hide a temporary bait stash in a 3x3x3 hollow.
/spawndungeon Build a temporary dungeon room with a decoy spawner and chests.
/spawnxray Place temporary bait ore veins to catch x-ray users.

Reports, lookup and logs

Command Aliases Description
/report <player> <reason...> Report a player to online staff.
/reports Review open reports.
/lookup <player> /check, /profile, /whois A player's full moderation profile.
/notes <player> [list|add <text>|remove <id>] /note Staff notes on a player.
/watch <player> [reason] Add a player to the staff watchlist.
/unwatch <player> Remove a player from the watchlist.
/watchlist Open the watchlist.
/chatlogs <player> [page] /cl, /chatlog View logged chat, commands, signs, books and anvil renames.
/chatlogs search <text|"phrase"> [player] Search recent logs.
/chatlogs export <player> Export a player's logs to a text file.
/commandspy /cspy Toggle live view of other players' commands.
/staffstats [staff] [today|week|month|all] Staff activity stats.
/staffleaderboard [rating|online|staff-mode|vanish|punishments|reports] [period] /stafftop Rank staff by an activity metric.
/stafflist /staffonline Online staff with status and world.
/orealerts [toggle | tp <player>] /xray X-ray suspicion menu, alert toggle and alert teleport.

Inventory restore

Command Aliases Description
/invrestore <player> [search <text>] /restoreinv, /ir Browse and restore a player's inventory snapshots.
/ecrestore <player> [search <text>] /enderchestrestore, /ecr Browse and restore ender chest snapshots.
/invsnapshot <player> [cause...] /backupinv Take a manual snapshot of an online player. Works from the console.

Chat and server protection

Command Aliases Description
/mutechat Silence or reopen public chat.
/slowchat [seconds|off] Set or remove the delay between each player's messages.
/clearchat Flood public chat with blank lines.
/lockdown <on|off|status> [duration] [reason] /maintenance Lock the server so only staff and whitelisted players can join.
/antibot [status] Join rate, protection state and recent blocks.
/chatguard [status | toggle <check> [on|off] | test <message>] /cguard View, toggle and test ChatGuard checks.
/cmdwhitelist [help|list|add|remove|groups|reload] /cmdwl, /commandwhitelist Manage the command whitelist.
/restrict <add|remove|hand|list|reload> Block placing, breaking, using, crafting, exploding, dropping or picking up items.
/chatfilterreload Reload the chat word filter.
/voicefilterreload Reload voice/voicefilter.yml.
/voicemod [on|off] /voicemoderation Switch AI voice moderation on or off.
/voicechatdebug [on|off] Toggle voice debug logging.
/voicechatstatus Show whether AI voice moderation is running.
/voice stats Voice moderation statistics.
/voicetos Read and accept the voice chat rules.

Teleport and utility

Command Aliases Description
/tp <player> or /tp <x> <y> <z> [world] Teleport to a player or coordinates. Also /tp <player> <target> for others.
/tppos <x> <y> <z> [world] Teleport to coordinates.
/tphere <player> /bring Teleport a player to you.
/tpall Teleport everyone to you.
/otp <player> /offlinetp, /tpoffline Teleport to where an offline player last was.
/back /return Return to your previous location (and death location with the extra permission).
/top Teleport to the highest block above you.
/gamemode <mode> [player] /gm Change game mode. /gmc, /gms, /gma and /gmsp are shortcuts.
/anvil, /workbench, /grindstone, /smithing, /loom, /cartography, /stonecutter /craft, /wb, /crafting, /smithingtable, /cartographytable Open that block's screen anywhere.
/enderchest [player] /ec, /echest Open your ender chest, or view another player's.
/trash /disposal, /bin Open a bin that deletes anything put in it.
/heal [player] Heal yourself or another player.
/fly [on|off] [player] Toggle flight.
/flyspeed <0-10|reset> [player] Change fly speed.
/sudo <player> <command|c:message> Make a player run a command or chat.
/list /onlineplayers Online players, grouped by rank when LuckPerms is installed.
/recipes [item] Browse how an item is crafted, smelted, cut or smithed. With no item or an unclear name it opens a searchable list.
Command Aliases Description
/link <code> Link your Minecraft account using a code from your Discord bot.
/link status Show your link.
/link unlink [player] Remove your link, or another player's with permission.
/link whois <player|discord id> See which Discord account a player linked.
/sentinel reload /sen Reload every config and language file.
/sentinel test <text> Test text against the filters.
/sentinel flags [player] Recent flags.
/sentinel logs [player] The activity log.
/sentinel analytics Moderation statistics.
/sentinel status System status.
/sentinel stats <player> [stat] [value] View or edit tracked player statistics. Without a stat it opens a menu.
/sentinel debug [status|on|off|<category> [on|off]] Toggle debug logging.
/sentinel voice [on|off] Voice moderation status or toggle.
/sentinel webhook [status|test [event]] Discord event status and sample messages.
/sentinel gui Open the admin panel.
/sentinel dashboard Open the staff dashboard.
/staffreload Same as /sentinel reload.
/staffreloadmessages Reload only the language files.

Permissions

Everything defaults to op unless the Default column says otherwise. sentinel.* grants all of them.

General and staff

Permission Default Description
sentinel.admin op /sentinel, /achat and the console maintenance commands.
sentinel.gui op Admin GUI panel.
sentinel.notify op Receive in-game moderation notifications.
sentinel.staff op Staff chat, chat moderation tools and staff settings.
sentinel.staffmode op Staff mode, vanish, freeze, inspect tool.
sentinel.staffmode.edit op Break, place, interact and move items while in staff mode or vanished.
sentinel.staffmode.inspect.edit op Edit a player's inventory from the inspect tool.
sentinel.staffmode.randomtp op Random teleport tool.
sentinel.staffmode.randomtp.logs op /randomtplogs.
sentinel.staffmode.history.edit op Expire, change the time of, or reset the offense count of a punishment from the History screen.
sentinel.staffmode.history.delete op Permanently delete a punishment from the History screen or with /case <id> delete confirm.
sentinel.seevanished op See vanished staff.
sentinel.quickmenu everyone Shift + right-click quick menu in staff mode.
sentinel.sus op /sus and the Suspects tool.
sentinel.isolation.observe op Hear and observe both player groups while in creative, spectator, staff mode or vanish.
sentinel.filter.bypass op Bypass the sign, book and anvil word filter.
sentinel.staff.reload op /staffreload.
sentinel.staff.reloadmessages op /staffreloadmessages.
sentinel.chatfilter.reload op /chatfilterreload.
sentinel.voicefilter.reload op /voicefilterreload.
sentinel.voicemod.toggle op /voicemod.
sentinel.voice.stats op /voice stats.

Punishments

Permission Default Description
sentinel.punish op Parent of the nodes below. Also opens /punish and /history.
sentinel.punish.warn / mute / kick / ban / vban op Issue that type. vban also lifts voice bans.
sentinel.punish.unban / unmute op /unban and /unmute.
sentinel.punish.banip op /banip and the -ip flag on /ban.
sentinel.punish.exempt false Staff cannot warn, mute, kick, ban or voice ban this player, and nobody can send them an inventory copy with /cpto.
sentinel.punish.custom op The Custom / Other punishment form (type and duration by hand).
sentinel.punish.active op /activepunishments and /bannedonline.
sentinel.punish.bulk op /punishbulk.
sentinel.punish.staffhistory op /staffhistory.
sentinel.punish.info op /punishinfo.
sentinel.punish.repair op /fixpunishment.
sentinel.punish.repairall / resetall / wipedb / purgeplayer op The console maintenance commands (each also needs sentinel.admin).
sentinel.myban everyone /myban.
sentinel.case.view op /case and opening cases from history menus.
sentinel.case.note op /casenote and notes in the case menu.
sentinel.alts op /alts.
sentinel.alts.ban-all op Bulk-ban every online linked alt account.
sentinel.alts.clear / clearall / ipreport op /clearalts, /clearallalts, /ipreport.
sentinel.autoban op /autoban (console).
sentinel.anticheatbc op /anticheatbc.
sentinel.stats op View and edit tracked player statistics.

Reports, lookup, logs

Permission Default Description
sentinel.report everyone /report.
sentinel.reports op /reports and report alerts.
sentinel.lookup.use op /lookup.
sentinel.lookup.ip op Show the masked IP in /lookup.
sentinel.lookup.notes op View and add staff notes.
sentinel.lookup.notes.remove op Remove staff notes.
sentinel.lookup.notes.alert op Get told on join when a player has notes.
sentinel.lookup.watch op /watch, /unwatch, /watchlist.
sentinel.lookup.watch.alert op Watchlist join, leave and flag alerts.
sentinel.chatlog.view / search / export op /chatlogs, its search and its export.
sentinel.chatlog.commandspy op /commandspy.
sentinel.chatlog.commandspy.bypass false This player's commands are hidden from command spy.
sentinel.staffstats.view / others / leaderboard / list op Staff stats, other staff's stats, leaderboard, staff list.
sentinel.orealerts.use / alerts / teleport op Ore alert menu, alerts and toggle, teleport from alerts.

Player card, live views, inventory restore

Permission Default Description
sentinel.playercard op /playercard and the staff-mode player card.
sentinel.playercard.view.<section> op See a card section. Sections: vitals, location, coords, inventory, enderchest, punishments, flags, alts, notes, activity, profile, staffinfo, ping, playtime, firstjoin, reports, client, suspicion, live. Hidden sections show as locked.
sentinel.playercard.action.<action> op Use a card button. Actions: invsee, ecsee, punish, history, restore, freeze, teleport, note, case, chatlogs, pin.
sentinel.playercard.view.*, sentinel.playercard.action.*, sentinel.playercard.* op Everything in that group.
sentinel.invsee / sentinel.invsee.edit op /invsee view-only, and editing.
sentinel.ecsee / sentinel.ecsee.edit op /ecsee view-only, and editing.
sentinel.invrestore.view / enderchest / snapshot op /invrestore, /ecrestore, /invsnapshot.
sentinel.invrestore.restore / give / teleport / export / take op Restore, receive a copy, teleport to a snapshot, export to shulker boxes, take single items.

Server protection and utilities

Permission Default Description
sentinel.lockdown.use op /lockdown.
sentinel.lockdown.antibot op /antibot.
sentinel.lockdown.alerts op Lockdown and join-protection alerts.
sentinel.lockdown.bypass op Join during a lockdown.
sentinel.lockdown.antibot.bypass op Bypass join protection and per-IP limits.
sentinel.lockdown.newplayer.bypass op Bypass new-player chat and command limits.
sentinel.chatguard.admin / alerts / bypass op /chatguard, alerts, bypass every check.
sentinel.chatguard.bypass.flood / advertising / caps / repeat op Bypass one check.
sentinel.cmdwhitelist.manage / bypass op Manage the whitelist, ignore it.
sentinel.cmdwhitelist.group.<group> false Extra commands for a group in cmdwhitelist.yml (the default file has vip).
sentinel.restrict / sentinel.restrict.bypass op /restrict, ignore restrictions.
sentinel.chat.mute.bypass false Chat while muted.
sentinel.teleport.tp / others / coords / here / all / offline / back / back.death / top op Teleport commands (others teleports other players, back.death adds the death spot).
sentinel.shortcuts.<name> op gamemode, gamemode.others, anvil, workbench, enderchest, enderchest.others, grindstone, smithing, loom, cartography, stonecutter, trash.
sentinel.ec.rows.1 to sentinel.ec.rows.6 false Ender chest size in rows. sentinel.ec.* gives all.
sentinel.heal, sentinel.heal.others op /heal for yourself, for others.
sentinel.fly, sentinel.fly.others op /fly.
sentinel.flyspeed, sentinel.flyspeed.others op /flyspeed.
sentinel.recipes everyone /recipes.
sentinel.sudo op /sudo.
sentinel.sudo.exempt false Cannot be targeted by /sudo from other players.
sentinel.spawnstash / spawndungeon / spawnxray op The bait structure commands.
sentinel.cpto / sentinel.cpfrom op Inventory copy.
sentinel.discordlink.use everyone Link, check and unlink your own Discord account.
sentinel.discordlink.lookup op /link whois.
sentinel.discordlink.unlink.others op Remove another player's link.

Configuration

Files in plugins/Sentinel/:

File Purpose
config.yml Every feature toggle and setting.
languages/<en,de,es,fr>/messages.yml Every chat, menu and dialog text.
languages/<en,de,es,fr>/badwords.yml Word lists for the filter.
punishments/punishments.yml Punishment groups and ladders.
data/database.yml Storage backend (SQLite or MySQL).
data/world-rules.yml Per-world moderation overrides.
data/alts.yml Linked-account detection.
data/stats.yml Statistics shown in the stats menu and by placeholders.
voice/ai.yml AI second check for chat, signs and books.
voice/voicechat.yml Voice chat transcription.
voice/voicefilter.yml Word lists for voice chat.
web/discord.yml Discord webhooks, forum posts and embeds.
web/api.yml Built-in web API and events.
restrictions.yml Item and block restrictions.
cmdwhitelist.yml Command whitelist.

Colour values are &#RRGGBB. Menus and messages use the tokens {accent}, {success}, {error}, {warning}, {muted}, {separator}, {info} and {white}.

config.yml: general

Key Default Description
license-key "" Your license key.
debug.enabled false Master switch for debug logging.
debug.categories.* true Per area: voice, ai, filter, strike, chat, listener, join, command, license, lifecycle. Only log while the master switch is on.
accent-color &#00D4FF Main colour. Changing it recolours every {accent}.
colors.success / error / warning / muted / separator / info / white see description &#00FF9D, &#FF4D4D, &#FFD166, &#9AA7B5, &#5C6773, &#C77DFF, &#FFFFFF.
style.* Layout of menu item hovers: header colours, click arrow and wording, blank lines.
language.default en en, de, es or fr.
language.detection auto auto detects each message's language, manual always uses the default.
language.detect-all-languages true Check every message against the word lists of all languages.
logging.enabled true Keep the activity log (/sentinel logs).
logging.console true Print flagged messages to the console.
logging.log-clean false Also log messages that passed.
logging.retention-days 30 Days of activity log kept (0 is forever). Purged at startup and daily.
sounds.enabled true Menu sounds. sounds.click, success, error and info each take name, volume, pitch.
redis.enabled false Connect to Redis for cross-server features.
redis.host / port / password / timeout-ms 127.0.0.1 / 6379 / empty / 2000 Redis connection.

config.yml: content filtering and punishments

Key Default Description
features.chat / signs / anvils / books true Which content is scanned.
features.filter.warn-player true Tell the player their message was blocked.
features.filter.cooldown-seconds 3 Seconds before the same player can trigger the actions commands again.
filter.whole-words-only true A blocked word only counts as a whole word (or with an ending such as s, ed, ing). Lookalike spellings are still caught.
moderation.strictness-preset NORMAL RELAXED, NORMAL or STRICT.
moderation.shadow-mode false Log violations only, never block or punish.
moderation.duplicate-window-seconds 10 Same sign, book or anvil text from one player counts once in this window.
moderation.auto-punish.chat false Punish automatically (otherwise only block and alert staff).
moderation.auto-punish.sign / book / anvil / voice true Same for the other content types.
moderation.login-check.fail-closed false If the ban check fails on join, keep the player out.
content.rate-limit.enabled true Cap content checks so spam cannot overload the server.
content.rate-limit.max-checks-per-minute 60 Checks per minute across the server.
content.rate-limit.max-ai-calls-per-player 10 AI requests per player.
punishments.ip-ban-all true Every ban is a connection ban using the target's last known IP, so alts on it are blocked. Unbanning lifts it. Mutes are unchanged.
punishments.tab-durations 30m, 1h, 6h, 1d, 7d, 30d, perm Duration suggestions in tab completion.
punishments.anti-spam.enabled true Mute players who send too many messages too fast.
punishments.anti-spam.messages-per-interval 5 Messages allowed per interval.
punishments.anti-spam.interval-ms 3000 Length of the spam window.
punishments.escalation.enabled true Repeat offenses get harsher punishments.
punishments.escalation.reset-after-days 60 Days after which old offenses stop counting.
punishments.default-durations.warn / mute / kick / ban / vban 0s / 10m / 0s / 1d / 0s Length when a staff member gives none (0s is permanent or instant).
punishments.bedrock-prefix . Floodgate username prefix. Commands try names with and without it.
punishments.remote-lookup.enabled true Resolve names that never joined through the Mojang profile API.
punishments.remote-lookup.* Timeout (timeout-ms 4000) and cache times for found, missing and failed lookups.
punishments.repair.*, reset-all.*, clear-alts.*, ipreport.alt-limit Batch sizes and pauses for the maintenance commands. ipreport.alt-limit is 50.
punishments.isolation.enabled false Advanced. Isolate temporarily banned players with a separate confinement plugin instead of kicking them. Needs a restart.
cases.max-note-length 500 Longest case note.
actions.enabled true Run console commands on violations and punishments.
actions.any / actions.by-type.<type> see file Console commands per type (chat, sign, book, anvil, voice, warn, mute, kick, ban, vban, unban, unmute). Placeholders: {player} {uuid} {type} {content} {match} {staff} {reason} {duration} {label} {offense}.
command-overrides.enabled true Rewrite ban, tempban, ban-ip, tempbanip, mutechat, clearchat and slowchat (and minecraft: forms) to Sentinel's versions. Edit command-overrides.commands to change the list.

config.yml: staff mode and player card

Key Default Description
staffmode.enabled true Staff mode is available.
staffmode.return-on-exit true Leaving staff mode teleports you back to where you turned it on.
staffmode.persist-on-relog true Staff mode stays on when a staff member logs out or the server restarts, and carries on at the next login. false ends it at logout and restores the saved inventory. Ignored when cross-server staff mode (Redis) is on.
staffmode.vanish-rehide-delay-ticks 10 Ticks after a player joins before vanished staff are hidden from them a second time, so other plugins cannot undo it.
staffmode.fly-speed 0.2 Flight speed in staff mode (0.1 vanilla, max 1.0).
staffmode.tool-debounce-ms 300 A tool ignores repeat clicks for this long.
staffmode.risk-context-window-ms 3600000 History shown as risk context for a player.
staffmode.kit see below Kit items as MATERIAL:SLOT:TOOL.
staffmode.blocked-commands sethome, tphere, tpaccept, tpahere, tpohere, shop Commands staff cannot use in staff mode.
staffmode.randomtp.worlds / excluded-worlds [] / afk Worlds the random teleport tool uses or avoids. Empty worlds means all.
staffmode.freeze.lock-inventory true Frozen players cannot move inventory items.
staffmode.freeze.allowed-commands msg, staffmode Commands a frozen player may use.
staffmode.freeze.reminder-interval-ms 2000 Reminder to frozen players.
staffmode.cross-server.enabled true Share staff mode across servers (needs Redis).
staffmode.cross-server.server-id default Servers with the same id share staff mode. This id is also the server name in %sentinel_<server>_players%.
staffmode.invsee.refresh-ticks 20 Refresh of /invsee and /ecsee while open (0 is off).
staffmode.tab-hook.enabled true Show staff mode on the name tag with TAB.
staffmode.tab-hook.mode belowname belowname, suffix or none.
staffmode.tab-hook.text &7Staff Mode Text shown.
staffmode.tab-hook.placeholder %sentinel_staffmode% Placeholder added to TAB (the text above for staff in staff mode, empty for everyone else).
staffmode.quick-menu.enabled true Shift + right-click quick menu. Needs a restart.
staffmode.quick-menu.default RING RING or CARD until a staff member picks.
staffmode.quick-menu.ring.options punish, freeze, teleport, inventory, enderchest, history, card Order of ring options. Radius, scale, hover, icons and timing keys sit beside it.
staffmode.player-card.enabled true Create the player card. Needs a restart.
staffmode.player-card.mode HOLOGRAM HOLOGRAM (floating card only you see) or DIALOG. Old clients fall back to the dialog.
staffmode.player-card.trigger BOTH Left-click a player in staff mode while SNEAK, SPRINT or BOTH.
staffmode.player-card.scale 1.15 Overall size (0.4 to 3.0).
staffmode.player-card.max-distance 64.0 The card closes when you walk this far away.
staffmode.player-card.follow.enabled true The card glides after your head. Sneak and click anywhere to pin it, again to unpin.
staffmode.player-card.follow.distance 4.4 Distance from your eyes.
staffmode.player-card.follow.deadzone-degrees / move-threshold / glide-ticks / wall-margin 25 / 0.3 / 4 / 0.7 How the card follows and keeps off walls.
staffmode.player-card.live.* Live activity feed: refresh-ticks 10, max-entries 40, text-length 60, teleport-min-distance 8.0, moving-speed 0.5, and hidden-commands (password commands are never recorded).
staffmode.player-card.drawer.* Detail panel: width 1.9, gap 0.08, slide-ticks 6, rows-per-page 12, record-rows-per-page 8.
staffmode.player-card.ping-warn / ping-bad 120 / 250 Ping from which the value turns yellow, then red.
staffmode.player-card.suspicion-warn / suspicion-bad 3.0 / 8.0 Suspicion score colour thresholds.
staffmode.player-card.blocks.*, colors.*, sounds.*, layout.*, head.*, banner.* Card look: block materials, hex colours, sounds, offsets, head orientation and the status banner. Defaults are tuned, change only if you want a different style.

The default kit:

staffmode:
  kit:
    - "MACE:0:punish-tool"
    - "BOOK:1:inspect-tool"
    - "COMPASS:3:suspects-tool"
    - "ENDER_EYE:4:spectator-tool"
    - "SPYGLASS:5:ai-insight-tool"
    - "EMERALD:6:randomtp-tool"
    - "ICE:7:freeze-tool"
    - "GRAY_DYE:8:vanish-toggle-tool"

Tools available: punish-tool (needs sentinel.punish), inspect-tool, suspects-tool (needs sentinel.sus), spectator-tool, ai-insight-tool, randomtp-tool (needs sentinel.staffmode.randomtp), freeze-tool, vanish-toggle-tool and teleport-tool (not in the default kit; add RECOVERY_COMPASS:2:teleport-tool to use it).

config.yml: modules

Switch modules on or off under features:

Key Default Module
features.chatlog true Chat logging (/chatlogs).
features.lookup true Player lookup, notes and watchlist.
features.staffstats true Staff statistics.
features.lockdown true Lockdown and anti-bot.
features.invrestore true Inventory restore.
features.enderchest true Custom ender chest.
features.teleport true Teleport commands.
features.cmdwhitelist false Command whitelist.
features.orealerts false Ore alerts.
features.chatguard true ChatGuard.
features.discordlink true Discord account linking.
Key Default Description
sus.chat-alerts true Send Sentinel's own anticheat alert line to staff chat. Flags are always recorded.
sus.score-days 7 Days of flags that count toward review scores.
sus.score-half-life-hours 24 A score loses half its value this often without new evidence.
sus.default-weight / experimental-multiplier / heuristic-multiplier / per-check-cap 1.0 / 0.25 / 0.5 / 100 How checks are weighed. The score ranks who to look at first; it never triggers a ban.
sus.weights.grim.*, sus.weights.totemguard.* Per-check weights.
reports.cooldown-seconds 60 Wait between reports.
reports.max-open 100 Oldest open reports are dropped past this.
reports.max-reason-length 256 Longest reason.
reports.teleport-command tp %player% Run by staff from a report alert.
bait.lifetime-seconds 300 A bait structure is removed after this long, and every block is restored.
bait.dungeon.*, bait.xray.* Size and layout of the dungeon and ore-vein baits.
chatlog.retention-days 30 Days a log entry is kept.
chatlog.log.chat / commands / signs / books / anvils true What is recorded.
chatlog.commands.redacted login, register and similar Commands whose arguments are hidden (<redacted>), so passwords never reach the log.
chatlog.search.*, chatlog.export.* Search window (168 hours), result limits and export folder chatlogs.
lookup.history-limit / notes.max-length / notes.join-alert 500 / 200 / true Lookup and notes.
lookup.watchlist.join-alert / leave-alert / flag-alert true Watchlist alerts.
lookup.watchlist.sync-across-servers true Share the watchlist over Redis.
staffstats.afk-minutes 5 Minutes without moving before a staff member counts as AFK.
staffstats.retention-days 365 Days of activity kept (0 is forever).
staffstats.default-period week today, week, month or all.
staffstats.rating.weights.*, rating.tiers.* Points per activity and the scores for excellent (12), good (6) and fair (2).
lockdown.sync-across-servers true A lockdown applies to the other servers.
lockdown.kick-online-on-enable true Kick players already online.
lockdown.whitelist [] Names or UUIDs allowed during a lockdown.
lockdown.antibot.join-threshold 15 Joins within join-window-seconds (10) that turn on join protection for protection-seconds (120).
lockdown.antibot.ip-rate-limit.* 3 joins / 10 s Per-IP join limit.
lockdown.antibot.max-accounts-per-ip 3 Accounts online from one IP (0 is no limit).
lockdown.antibot.ip-whitelist see file IP addresses that skip every anti-bot check (join protection, join rate and the account limit).
lockdown.new-players.enabled false Restrict brand-new players: wait wait-seconds (60) before chat and commands, within new-within-minutes (10).
orealerts.ores.<ore> diamond 4/10, ancient debris 4/10, emerald 3/15 alert-veins found within alert-minutes triggers an alert. Copy an entry to add more ores.
orealerts.alerts.bait-always-alert / orealerts.bait-score true / 2.0 Always alert when a player mines bait ore, and the suspicion points it adds.
orealerts.alerts.cooldown-seconds 120 Between alerts for the same player.
orealerts.storage.retention-days 14 History kept.
chatguard.notify-player true Tell players a message was changed or blocked.
chatguard.checks.<check>.enabled true Checks: flood, advertising, caps, repeat.
chatguard.checks.<check>.action flood fix, advertising block, caps fix, repeat block block, fix or warn.
chatguard.checks.<check>.alert-staff advertising true, others false Alert staff.
chatguard.checks.<check>.punish / category false / spamming (advertising: advertising) Also punish through the ladder.
chatguard.checks.flood.* 4 repeated chars, 256 length max-repeated-chars, max-length.
chatguard.checks.advertising.* medium strictness, signs, books, anvils, whitelist (youtube.com, youtu.be, twitch.tv, imgur.com), tlds, extra-patterns.
chatguard.checks.caps.* 8 letters, 70 percent min-letters, max-percent.
chatguard.checks.repeat.* 30 s, 0.85, 3, 4 window-seconds, similarity, history, min-length.
enderchest.default-rows 3 Rows for players with no sentinel.ec.rows.N permission (1 to 6).
enderchest.autosave-seconds 60 Save interval. Chests also save on close and quit.
enderchest.replace-vanilla-block true Right-clicking a vanilla ender chest opens this one.
teleport.notify-target true Tell a player when staff teleport them.
teleport.back-causes COMMAND, PLUGIN, UNKNOWN Teleport causes that set the /back spot.
teleport.max-coordinate 30000000 Largest x or z /tp accepts.

config.yml: inventory restore

Sentinel saves snapshots so staff can give lost items back. Each snapshot holds inventory, armor, offhand, ender chest, XP, health, food, effects, game mode and location.

Key Default Description
invrestore.triggers.death / quit / join / world-change / gamemode-change / container-open / container-close true Automatic snapshots on these events.
invrestore.triggers.respawn / teleport / command / interval false Optional triggers.
invrestore.triggers.interval-minutes 30 Minutes between timed snapshots.
invrestore.command-triggers clear, sell, ah, auction, trade, kit, repair Commands that snapshot when triggers.command is on.
invrestore.cooldowns.* 3 to 10 seconds Minimum time between snapshots of the same cause.
invrestore.containers.ignore-types crafting, enchanting, anvil and similar Inventory types never snapshotted.
invrestore.snapshot.skip-empty true Skip automatic snapshots when everything is empty.
invrestore.retention.max-per-cause 25 Snapshots kept per player per cause.
invrestore.retention.max-age-days 14 Older snapshots are deleted.
invrestore.restore.backup-before true Save a before-restore snapshot before every restore.
invrestore.cross-server.enabled true Restore to players or containers on other servers (needs Redis and shared MySQL).
invrestore.menu.use-dialogs false Use dialogs instead of the chest menu for the snapshot list.
invrestore.export.shulker LIGHT_BLUE_SHULKER_BOX Shulker used by the export button.
Key Default Description
chat.mute-check-timeout-ms 1500 Chat waits this long for the mute check before letting a message through.
chat.filtered-commands msg, tell, w, whisper, m, r, reply, me, say Commands whose text is checked by the word filter and ChatGuard like normal chat (name only, no slash). Empty list is none. sentinel.filter.bypass skips it.
chat.slow.tab-seconds 5, 10, 30, 60 /slowchat suggestions.
chat.clear.blank-lines 120 Lines sent by /clearchat.
chat.staffstatus.enabled true Action bar showing staff which chat they are talking in.
connection-messages.enabled true Join, quit and server-switch messages (templates under connection in messages.yml).
connection-messages.server-name empty Shown as %servername%. Blank uses the server id.
discord-link.bot-url placeholder Address of your bot's confirm endpoint. Leave as is to turn this off.
discord-link.link-secret placeholder Shared secret with your bot. Keep it private.
discord-link.normalize-secret true Lowercase the secret and turn spaces and underscores into dashes before sending.
discord-link.http-timeout-seconds 10 Wait for the bot.
discord-link.attempt-cooldown-seconds 5 Wait between link attempts.
discord-link.allow-relink true A linked player can link again, replacing the old link.
sudo.allow-chat true Allow /sudo <player> c:<message>.
sudo.protect-sudo-holders true Players who can use /sudo cannot be targeted by other players (the console can).
sudo.blocked-commands op, deop, stop, restart, reload, rl, sudo, lp, luckperms, execute, whitelist, ban-ip, pardon-ip Commands /sudo refuses.
recipes.max-listed-alternatives 5 Items that accept several materials list at most this many in the /recipes lore. recipes.icons.* sets the item shown for each station.
heal.feed / food-level / saturation / extinguish true / 20 / 20.0 / true What /heal restores. heal.clear-effects lists the effects removed.
flyspeed.max / default 10 / 1 Highest speed and the reset value.
list.rank-display-mode auto auto, prefix, name or prefix-name (needs LuckPerms for ranks).
list.show-default / hidden-ranks / rank-name-overrides true / [] / {} Control /list.
luckperms-security.enabled false Watch LuckPerms for dangerous positive wildcard permissions.
luckperms-security.action-mode monitor monitor only reports. remove also strips the node.
analytics.enabled true In-memory tracking of repeat offenders and trends.
stats.material-sum-cache-ms / custom-flush-ticks / custom-cache-ttl-seconds 5000 / 100 / 300 Caching for stat placeholders. The last one is how long an offline player's custom stats stay cached after a placeholder read.
admin.list-lines / max-recent-flags 10 / 200 Admin panel lists.

data/database.yml

Key Default Description
type sqlite sqlite (one server) or mysql (shared). Needs a restart.
mysql.host / port / database / username / password localhost / 3306 / sentinel / root / empty MySQL connection.
mysql.use-ssl false Connect over SSL.
mysql.pool-size 4 Connections kept open. All database work runs on one thread, so a small pool is enough.
mysql.connection-timeout / idle-timeout / max-lifetime 10000 / 600000 / 1800000 Milliseconds.
mysql.fallback-to-sqlite true If MySQL cannot be reached at startup, use the local SQLite file.
sqlite.filename sentinel.db File name in the plugin folder.

Other files

  • data/alts.yml: enabled (true) tracks linked accounts that share an IP or device fingerprint. enforcement.block-evasion (false) kicks players who join on an account linked to an active ban. notify-staff-on-join (false) alerts staff when a player with linked accounts joins.
  • data/world-rules.yml: world-rules.enabled (false). Per world: chat.enabled, voice.enabled, severity-multiplier and use-strikes.
  • data/stats.yml: quick-adjust-step and the list of statistics (deaths, player-kills, mob-kills, playtime, damage-dealt, damage-taken, distance-walked, jumps, blocks-broken, blocks-placed, reputation). Each entry sets statistic, display, material, and kind (MATERIAL_SUM or CUSTOM). The keys are used by %sentinel_stat_<key>%.
  • restrictions.yml: enabled, notify-player, message-cooldown-ms and items. Actions: place, break, use, craft, explode, drop, pickup, all. * matches any text, and worlds limits a rule to some worlds. Manage it in game with /restrict.
  • cmdwhitelist.yml: with features.cmdwhitelist: true, players can only use the default commands plus those of their groups. hide-from-tab and play-sound default to true. Namespaced commands such as minecraft:gamemode are always hidden from tab completion. sentinel.cmdwhitelist.bypass ignores the list.
  • voice/ai.yml: optional AI second check. ai.enabled (false), ai.provider (groq, openai, anthropic, google, openrouter, ollama or custom), ai.api-key, ai.model, ai.endpoint, ai.timeout-ms (5000). It never sees voice chat.
  • voice/voicechat.yml and voice/voicefilter.yml: see Voice moderation below.

Punishment ladders

punishments/punishments.yml defines groups (the first screen of /punish: chat, text, voice, conduct, cheating, exploits, evasion, trading and staff) and categories. Each category lists what happens at offense 1, 2, 3 and so on; the last step repeats.

categories:
  harassment:
    display: "Harassment"
    group: conduct
    aliases: [toxicity, toxic]
    offenses:
      1:
        punish: MUTE
        length: "1d"
        reason: "Toxic behavior towards other players"
      2:
        punish: BAN
        length: "3d"
        reason: "Repeated harassment"

punish is WARN, MUTE, KICK, BAN or VBAN. length is 10m, 1h, 3d, perm and so on. Included categories: chat_abuse, spamming, filter_bypass, toxicity, advertising, sign_abuse, book_abuse, anvil_abuse, voice_abuse, harassment, hate_speech, threats, doxxing, ddos, nsfw, impersonation, inappropriate_skin, griefing, structures, cheating, xray, autoclick, bug_abuse, duping, lag_machines, mute_evasion, ban_evasion, scamming, irl_trading, misuse_report and staff_harass. Offenses older than punishments.escalation.reset-after-days stop counting.

Discord

Set up webhooks in web/discord.yml:

  1. In Discord: Channel settings, Integrations, Webhooks, New Webhook, Copy Webhook URL.
  2. Paste it into the matching key under webhooks. A blank key sends nothing for that category.
  3. Run /sentinel reload, then /sentinel webhook test.
Key Default Description
webhooks.default empty Used by every category left blank.
webhooks.punishments empty Bans, mutes, kicks, warnings, unbans, time changes and staff notes.
webhooks.flags empty Chat, sign, book and anvil filter hits, plus ChatGuard blocks.
webhooks.voice empty Flagged speech with the audio clip attached (blank uses flags).
webhooks.reports empty Reports and when they are resolved.
webhooks.anticheat empty GrimAC, TotemGuard and x-ray alerts.
webhooks.staff empty Staff mode, staff commands, lockdown, LuckPerms security and Discord links.
webhooks.chat empty Every chat message. Very busy and never uses the default webhook: give it its own channel.
voice-clips FLAGGED OFF, FLAGGED or ALL (every clip, very busy).
ping-role empty Role ID to ping.
ping-on punishments, reports Categories that ping the role.
bot-name / bot-avatar Sentinel / empty Name and picture of the webhook.
customize {} Change how a single message looks.

A normal channel gets normal messages. In a forum channel, Sentinel opens one post per case, report or player and keeps updates inside it; it detects the channel type itself. Case posts include the player, type, case ID, reason, category and offense number, duration and expiry, staff, server, previous punishments, linked alt count (no IPs) and recent chat lines.

customize keys: case-opened, case-update, case-note, flag, voice-flag, chatguard, report, report-resolved, anticheat, xray, staffmode, command-log, lockdown, security, discord-link, chat-log, voice-clip.

customize:
  case-opened:
    embed:
      color: "#FF4D4D"
      title: "{type} | {player}"

Linking Discord accounts

Your bot makes the code; Sentinel only confirms it.

  1. The player gets a code from your bot.
  2. The player runs /link <code> in game.
  3. Sentinel calls discord-link.bot-url with {"secret", "code", "uuid", "username"}, where secret is discord-link.link-secret.
  4. The bot answers 200 {"discord_id": "123..."}, 404 for a wrong code or 410 for an expired code. Sentinel stores the link.

If the Discord account was already linked to another player, that older link is removed and the account moves to the new player. Sentinel then sends link.linked, link.unlinked and link.updated events (see Web API) so your bot can give or remove roles. link.updated fires when a linked player joins, changes rank or is banned, muted, unbanned or unmuted. Any Discord bot works.

Voice moderation

Needs the Simple Voice Chat plugin. Speech is turned into text by a provider, then checked against the word lists in voice/voicefilter.yml (plain matching, case, accents and common letter swaps ignored, per detected language with a default fallback). A match runs the actions.by-type.voice commands and the voice-abuse ladder.

Key Default Description
enabled (voice/voicechat.yml) true Moderate voice chat.
ai.provider custom groq, openai or custom. Set the matching api-key under ai.<provider>.
ai.request-timeout-seconds 20 Longest wait for a transcription.
ai.max-concurrent-requests 6 Requests running at once.
capture.min-utterance-ms / silence-gap-ms / max-utterance-ms 700 / 500 / 15000 How clips are cut.
mute.blocks-voice true A muted player's microphone is blocked too.
tos.enabled false Players must accept the voice rules (/voicetos) before they can speak. tos.body is the notice.
enabled (voice/voicefilter.yml) true Check transcripts against the word lists.
english-only.enabled false Warn (never punish) players who speak a language other than expected-language.

Placeholders

Requires PlaceholderAPI. Identifier: sentinel.

Placeholder Returns
%sentinel_staffmode_indicator% The staff mode tag (staffmode.indicator in messages) when in staff mode, empty otherwise.
%sentinel_isinstaffmode% true or false.
%sentinel_isvanished% true or false.
%sentinel_vanishindicator% The vanish tag (staffmode.vanish-indicator in messages) when vanished, empty otherwise.
%sentinel_stat_<key>% A tracked statistic from data/stats.yml, for example %sentinel_stat_deaths%. Unknown keys return 0.
%sentinel_totalplayers% Players online on this server.
%sentinel_<server>_players% Players online on this server when <server> matches the server id, 0 otherwise.

Aliases also accepted: modmodeindicator, modmode_indicator, isinmodmode, vanish_indicator.

Integrations

Plugin Effect
PlaceholderAPI Registers the placeholders above.
LuckPerms Ranks in /list, groups in Discord link events, wildcard security watch and permission checks for web API actors. Sentinel works without it.
GrimAC Flags feed /sus, alerts and Discord. Use /autoban in its punishment commands.
TotemGuard Same as GrimAC.
Simple Voice Chat Voice moderation.
TAB Shows the staff mode tag on name tags and offers the %sentinel_staffmode% placeholder.
Redis Shares staff mode, vanish, reports, lockdown, watchlist, presence messages and cross-server restores between servers.

Web API

Sentinel has a small built-in web API and can send signed events to your own address. Any web panel or Discord bot can use them. No endpoint ever returns IP addresses. Configure it in web/api.yml.

http:
  enabled: true
  api-key: "a-long-random-string"
  port: 8642
  bind-address: "0.0.0.0"

The API will not start without an api-key. Every request sends Authorization: Bearer <api-key>. Bodies are JSON. Errors look like {"error": "message"} with 400, 401, 403, 404, 409, 429 or 503. Put the API behind HTTPS (a reverse proxy) if it is reachable from the internet.

Key Default Description
http.enabled false Start the web API.
http.port 8642 Port.
http.bind-address 0.0.0.0 127.0.0.1 for this machine only.
http.cors-allow-origin empty Website allowed to call the API from a browser.
http.actor-permissions false Check that a named staff member really has the permission for the action. Uses LuckPerms when installed, otherwise the player must be online. Needs a restart.
http.rate-limit.enabled / max-requests-per-minute true / 120 Request limit.
events.enabled false Send events.
events.secret empty Signs every event. Blank sends no signature.
events.timeout-seconds 10 Wait for your address.
events.endpoints [] Where to send events, each with url and events ("*", "link.*" or one name).

Actions that change something accept an optional actor ({"uuid": "...", "name": "Steve"}) so audit and Discord logs show who did it. Without one the action is recorded as Console.

Endpoint Description
GET /api/v1/status Version, storage type, uptime, voice moderation and strictness.
GET /api/v1/players/online Online players with world, staff, vanished and staff mode.
GET /api/v1/staff/online Same, only players with sentinel.staff.
GET /api/v1/players/lookup?name= Find a player by name.
GET /api/v1/players/{uuid} Profile with punishment counts, active ban, mute and voice ban, Discord ID and note count.
GET /api/v1/players/{uuid}/punishments/active Active mute, ban and voice ban.
GET /api/v1/players/{uuid}/punishments/history?limit= Punishments, newest first (1 to 500).
GET /api/v1/players/{uuid}/flags?limit= Chat and voice moderation flags for the player.
GET /api/v1/flags/recent?limit= Newest flags on the server.
GET /api/v1/staffmode/{uuid} inStaffMode, vanished, frozen.
GET /api/v1/punishments/active?limit= Newest active punishments (1 to 500).
GET /api/v1/punishments/{id} One punishment by case ID or numeric ID.
POST /api/v1/players/{uuid}/punish Body type, reason, durationMs (0 is permanent), category, actor.
POST /api/v1/punishments/{id}/revoke Body reason, reset, actor. Lifts a ban, mute or voice ban.
GET /api/v1/players/{uuid}/notes?limit= Staff notes.
POST /api/v1/players/{uuid}/notes Body text (up to 500 characters), actor.
GET /api/v1/reports?status=open|closed|all&limit= Reports.
POST /api/v1/reports/{id}/close Body actor.
GET /api/v1/players/{uuid}/discord, GET /api/v1/discord/{discordId} Linked account with active ban and mute.
GET /api/v1/link/{discord_id or uuid} Link details: uuid, name, discord_id, linked_at, groups, banned, muted.
POST /api/v1/link/unlink Body discord_id or uuid.

With http.actor-permissions on, actions are checked against sentinel.punish.<type>, sentinel.lookup.notes and sentinel.reports.

Events

Each event is a POST with X-Sentinel-Event, X-Sentinel-Signature: sha256=<hex> and a body of { "event", "time", "server", "data" }. Answer with any 2xx. Failures are logged and not retried.

Event When
punishment.created A punishment is issued.
punishment.revoked A ban, mute or voice ban is lifted.
punishment.expired A punishment expires.
report.created A player files a report.
report.resolved A report is closed.
link.linked / link.unlinked / link.updated A Discord link is made, removed, or a linked player's rank or punishment state changes.

The signature is the hex HMAC-SHA256 of the raw request body using events.secret. Compare in constant time against the raw bytes, not re-serialized JSON.

const crypto = require('crypto');
const expected = 'sha256=' + crypto.createHmac('sha256', SECRET).update(rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-sentinel-signature'] || ''));

Developer API

Sentinel registers SentinelAPI (package net.spxry.sentinel.api) with the Bukkit services manager. There is no public Maven artifact. Add the jar as a compileOnly dependency and declare Sentinel as a soft dependency.

softdepend: [Sentinel]
SentinelAPI api = Bukkit.getServicesManager().load(SentinelAPI.class);
Method Description
boolean isInStaffMode(UUID) Whether the player is in staff mode.
boolean isVanished(UUID) Whether the player is vanished.
boolean isFrozen(UUID) Whether the player is frozen.
boolean canSee(Player viewer, Player target) Vanish-aware visibility.
CompletableFuture<Optional<PunishmentRecord>> getActiveMute(UUID) Active mute.
CompletableFuture<Optional<PunishmentRecord>> getActiveBan(UUID) Active ban.
CompletableFuture<Optional<PunishmentRecord>> getActiveVoiceBan(UUID) Active voice ban.
CompletableFuture<List<PunishmentRecord>> getPunishmentHistory(UUID, int limit) History.
CompletableFuture<Void> issuePunishment(UUID staffOrNull, UUID target, String targetName, PunishmentType type, String reason, long durationMs, String category) Issue a punishment.
List<FlagRecord> getRecentFlags(int limit) Recent flags on the server.
List<FlagRecord> getRecentFlagsForPlayer(UUID, int limit) Recent flags for one player.
ModerationStats getModerationStats() Moderation statistics.
boolean isVoiceModerationEnabled() Voice moderation state.
String getStrictnessPreset() Current strictness.

Events, all in net.spxry.sentinel:

Event Package Description
SentinelPunishEvent punishments.event A punishment was created. Case ID, target, actor, reason, category, expiry. May be async.
SentinelStaffModeChangeEvent staff.event A player entered or left staff mode.
SentinelVanishChangeEvent staff.event A player vanished or reappeared.
DiscordLinkEvent link A Discord account was linked or unlinked. May be async.
InventorySnapshotEvent invrestore A snapshot is about to be saved. Cancellable.
InventoryRestoreEvent invrestore A restore is about to be applied. Cancellable.

FAQ

Players see chest menus instead of dialogs. Dialogs need a 1.21.6+ client. Staff can switch with /menustyle, and -o on a command forces the chest menu.

Does Sentinel show IP addresses? No. Menus, commands, lookups, the web API and Discord posts never show IPs. Where an IP is the only link between accounts, Sentinel says "shared connection".

Why are bans blocking other accounts? punishments.ip-ban-all is true, so bans use the target's last known IP. Set it to false for account-only bans. Unbanning lifts the connection ban too.

/punish picked a punishment I did not choose. It picks the step from the player's history in punishments.yml. For a manual type and duration use /ban, /mute and friends, or give staff sentinel.punish.custom for the Custom form.

Staff mode did not return me to where I was. Leaving staff mode teleports you back to where you turned it on when staffmode.return-on-exit is true (the default). Staff mode also stays on across a relog or restart unless staffmode.persist-on-relog is false or cross-server staff mode (Redis) is on.

The web API will not start. Check http.enabled is true and http.api-key is set. Restart the server after changing http.

Voice moderation does nothing. Install Simple Voice Chat, set an api-key for your provider under ai in voice/voicechat.yml, and check /voicechatstatus.

Discord messages do not appear. Paste the webhook URL under webhooks, run /sentinel reload and then /sentinel webhook test. Chat has its own webhook and does not use the default one.

Can I use a different language? Set language.default to en, de, es or fr. Edit the text in languages/<lang>/messages.yml and run /sentinel reload.

Do I need MySQL? No. SQLite is the default. Use MySQL and Redis only to share data between servers.

Ender chest rows. Give sentinel.ec.rows.N (1 to 6). The highest one wins. Players without one get enderchest.default-rows.