Looking for the full default code templates? Check out the complete, downloadable versions at here.
1. Main Configuration (config.yml)
The config.yml is the brain of the plugin. It dictates where data is stored, how automated systems run, and integrates with external services like Discord.
1.1 Database Selection
SentryWipe needs a place to store logs, backup data, and statistics. You have three choices: SQLite, H2, or MySQL.- Which database should I use? If you run a single survival/factions server, use H2. It’s fast, embedded, and requires zero setup. If you run a network (e.g., multiple servers connected via BungeeCord/Velocity) and want wipes to sync across them, you must use MySQL.
- I’m getting an SSL error with MySQL! Set
useSSL: false. If your MySQL server requires SSL, ensure your certificates are configured correctly on the machine.
1.2 Backups & Data Recovery
SentryWipe includes an automated backup system that snapshots player data before a wipe. This is what powers the/wipe undo command.
- “Why isn’t /wipe undo working?” Ensure
backups.enabledistrue. If backups are disabled, wipes are permanent immediately. - Storage Mode:
FILEstorage saves zipped backups locally in the plugin folder.DATABASEstores the binary data in your SQL database. We highly recommendFILEfor most servers to prevent your MySQL database from bloating massively over time. - Data Caps: The
max-size-mbensures your disk doesn’t fill up. Once the backup folder hits 500MB, older backups are deleted.
1.3 Auto-Purge System
The auto-purge system cleans up data from players who haven’t logged in for a long time, keeping your server optimized.- Protecting Staff & VIPs: You absolutely must give your staff members and VIPs the
sentrywipe.bypass.purgepermission! Otherwise, if an admin goes on vacation for 31 days, their data will be wiped! - Mode: This references a preset from your
presets.yml. We strongly recommend using asoftwipe for auto-purges, which deletes inventory and location but preserves balances and ranks, just in case an old player returns. - Banned Players: If
purge-banned-playersis true, banned players are immediately purged to save disk space.
1.4 System Settings & Kick Messages
When a player is wiped while online, they are kicked for safety. You can customize this entire screen.- Async Execution: Keep
async: trueenabled. This ensures that massive wipes (like/wipeall) do not freeze or lag your main server thread.
1.5 Discord Integrations
Keep your staff team accountable and informed.- Go to your Discord server settings.
- Navigate to Integrations -> Webhooks -> Create Webhook.
- Copy the URL and paste it here.
1.6 Custom Sounds
You can fully customize the audio feedback for admins using the plugin.1.7 Worlds Configuration
This is a critical, often-overlooked section. SentryWipe needs to know which worlds to look inside when deletingplayerdata.
resource_world or dungeons, you must add them to this list. If you don’t, SentryWipe won’t delete the player’s position or local data inside those custom worlds.
1.8 Dev Mode (Testing Safely)
Are you customizing the GUI and want to test it without accidentally wiping someone?dev-mode is on, the GUI will populate with fake players (e.g., Fake_Player01). You can click them, wipe them, and test all your preset menus—zero actual data will be harmed.
2. Wipe Presets (presets.yml)
The presets.yml file is the most powerful part of the plugin. It lets you define exactly what data is removed.
A preset is defined by its name, a display name, and a list of actions (data points).
2.1 Understanding Actions (Data Points)
Here is exactly what each true/false toggle does:inventory: Clears the player’s main inventory, armor, and offhand.ender_chest: Clears their Ender Chest contents.xp: Resets levels and experience points to 0.health: Resets health to 20 (full hearts) and clears active damage/fire ticks.food: Resets hunger and saturation.potions: Removes all active potion effects (useful for clearing infinite buff glitches).balance: Wipes their vanilla economy balance.homes: Wipes their saved homes (requires integration hooks like Essentials).stats: Clears vanilla Minecraft statistics (blocks broken, playtime, mobs killed).advancements: Resets all Minecraft achievements.playerdata: Deletes their.datfile from the world folders. Warning: This is the nuclear option and resets everything.bedspawn: Removes their respawn point.fire: Extinguishes the player if they are burning.flight: Disables fly mode.glow: Removes the glowing effect.
2.2 Understanding Hooks
SentryWipe seamlessly integrates with other plugins. If you haveessentials: true, SentryWipe hooks into the Essentials API and clears their Essentials user data (balance, homes, jails, mails).
Supported Hooks include: essentials, luckperms, cmi.
- LuckPerms Note: Setting
luckperms: truewill strip the player of all ranks and permissions, returning them to the default group. Only use this for full blacklists/bans!
2.3 Creating a Custom Preset
Let’s say your server has a bug where players duplicated money, and you need to wipe everyone’s balances but leave their builds and items intact./wipeall economy_reset!
3. GUI Customization (gui.yml)
The in-game GUI is completely modular. You can change slots, sizes, items, and lore.
3.1 GUI Structure
size: 30, the plugin will throw an error and fall back to default settings.
3.2 Modifying Filter Buttons
Filters are a unique feature of SentryWipe that allows admins to sort players.- Slots: Slots start at
0(top left corner) and end atsize - 1. For a 54-slot inventory, the bottom right corner is53. - Materials: Must be a valid Bukkit
Materialenum (e.g.,DIAMOND_SWORD,GOLD_INGOT).
4. Localization & Messages (messages.yml)
Every single message SentryWipe outputs can be modified.
4.1 Hex Colors and Formatting
We highly recommend using modern Hex formatting for beautiful chat messages.- Format:
&#HEXCODE(e.g.,&#c93434). - Standard Minecraft color codes (e.g.,
&c,&l) are also supported.
4.2 Interactive Hover Text
When an admin runs a command, SentryWipe can return a message that, when hovered over with the mouse, reveals a multi-line tooltip with extra data.%player%- The target player.%admin%- The admin executing the command.%preset%- The name of the preset used.%reason%- The reason provided for the wipe.%time%- Timestamp or duration data.%session%- The unique UUID of the wipe session (used for undo/redo).
4.3 Disabling Broadcasts
If you run a stealthy wipe on a hacker, you might not want the whole server to know or the admins. While you can use silent console commands, you can also globally disable broadcasts:5. Troubleshooting & Common Tickets
Here are a few quick tips to resolve the most common issues players run into:- “The plugin didn’t load after an update!”
- Did you use Plugman or
/reload? SentryWipe hooks deep into player data streams and requires a full server restart or /wipe reload to load safely.
- Did you use Plugman or
- “My GUI is broken and showing a generic chest name.”
- Check your
gui.ymlfor YAML syntax errors. If you miss a quotation mark or indent a space incorrectly, the server will reject the file and load defaults. Put yourgui.ymlcode into an online YAML validator.
- Check your
- “Wipes aren’t deleting player inventories in my custom dungeon world.”
- Ensure your custom world name is added to the
worldssection inconfig.yml. SentryWipe only scans the worlds you tell it to!
- Ensure your custom world name is added to the
- “The Discord webhook isn’t sending messages.”
- Double check that
enabled: trueis set, and verify that your URL hasn’t been deleted or regenerated in your Discord server settings. Ensure your server firewall allows outbound connections todiscord.com.
- Double check that
.png?fit=max&auto=format&n=VrRd9ylcA_lbpmt6&q=85&s=4eb75c6784eda09d9cdee2d5224ca0e8)