Warden is a block logging and rollback plugin by Team Hydra. It quietly records what happens in your worlds (blocks placed and broken, chests opened and emptied, explosions, fire, liquids, entity kills, chat and commands) and lets you look anything up or roll it back with one command.
Warden is built on the CoreProtect engine, fully unlocked, with every outbound connection removed: no update checks, no statistics, no error reporting, no license calls. It runs entirely on your own server.
Features
- Logs everything that matters. Block place and break, natural breaks (torches falling off a broken block), falling blocks, pistons, dispensers, fire, explosions, liquids, tree and mushroom growth, leaf decay, sculk spread, portals, entity kills and spawns, signs, buckets, container and inventory transactions, item drops and pickups, player interactions, chat, commands, logins and username changes.
- Inspector. Toggle
/warden inspectand left or right click any block to see its full history. - Powerful lookups. Filter by user, time, radius, action, block, world or exclusions. Results are paged and clickable.
- Rollback and restore. Undo a griefer's changes in an area or the whole world, preview first, then apply. Restore undoes a rollback.
- WorldEdit logging. Changes made with WorldEdit or HydraNet Builder are logged and can be rolled back too.
- Fully unlocked. No paid tiers or donation key. Every feature is on.
- Private by design. No phone-home of any kind.
- Multiple database engines. DuckDB (default), SQLite, MySQL / MariaDB, or ClickHouse.
- Per-world settings. Override any logging option for a single world.
- Auto purge. Optionally delete data older than a set age.
- CoreProtect compatible. Same database layout and the same developer API, so existing data and add-ons carry over (see Migrating below).
- Folia supported.
Requirements
Server Paper 26.3 (tested). Paper forks such as Purpur and Folia are supported. Java 25 Optional WorldEdit or HydraNet Builder (FastAsyncWorldEdit) for WorldEdit change loggingThe default DuckDB engine is downloaded once by the server's built-in library loader on first start, so the server needs internet access on the first boot (or pick SQLite or MySQL). Warden is tested on Paper 26.3; older versions are not tested.
Installation
- Stop your server.
- If you run CoreProtect, remove its jar (Warden replaces it; never run both). Keep its data folder if you want to migrate, see below.
- Drop
Warden-26.0.jarintoplugins/. - Start the server. Warden creates
plugins/Warden/and starts logging immediately. - Run
/warden statusto confirm it is working.
First boot files
File Purposeplugins/Warden/config.yml
Main configuration (database engine, logging toggles, radius limits).
plugins/Warden/language.yml
Every message, editable.
plugins/Warden/database.duckdb
The log database (DuckDB engine, the default).
plugins/Warden/database.db
The log database when you use the SQLite engine.
plugins/Warden/blacklist.txt
Optional, you create it. Users or blocks that should never be logged, one per line.
plugins/Warden/<world>.yml
Optional, you create it. Per-world overrides of any config.yml logging option.
Commands
The main command is /warden (alias /wp).
/warden help
List all commands.
warden.help
/warden inspect
Toggle the block inspector (alias /warden i).
warden.inspect
/warden lookup <params>
Search the logs (alias /warden l).
warden.lookup
/warden near [r:<radius>]
Quick lookup of recent changes around you.
warden.lookup.near
/warden page <number>
Jump to a page of the last lookup.
warden.lookup
/warden rollback <params>
Roll back changes (alias /warden rb).
warden.rollback
/warden restore <params>
Restore rolled-back changes (alias /warden rs).
warden.restore
/warden undo
Undo your last rollback or restore.
warden.restore
/warden apply
Apply a rollback you previewed with #preview.
warden.rollback or warden.restore
/warden cancel
Cancel a previewed rollback.
warden.rollback or warden.restore
/warden purge t:<time>
Delete data older than the given time.
warden.purge
/warden teleport <world> <x> <y> <z>
Teleport to a logged location (used by clickable results).
warden.teleport
/warden status
Version, database engine and queue status.
warden.status
/warden consumer
Pause or resume the logging queue.
warden.consumer
/warden reload
Reload config.yml and language.yml.
warden.reload
Lookup and rollback parameters
Parameter Meaning Exampleu:<user>
One or more users. Non-player sources start with #, such as #tnt, #creeper, #fire, #water.
u:Notch,#tnt
t:<time>
How far back. Combine units w, d, h, m, s.
t:2d5h
r:<radius>
Radius around you, #global for everything, #world_nether for one world, or #worldedit for your WorldEdit selection.
r:20
a:<action>
Restrict to an action: block, +block, -block, container, +container, -container, inventory, item, kill, spawn, click, chat, command, sign, session, username.
a:-block
i:<blocks>
Only these blocks or items.
i:diamond_ore,chest
e:<blocks or users>
Exclude blocks or users.
e:stone,#tnt
#preview
Show a rollback to yourself only, then /warden apply or /warden cancel.
#preview
#count
Return the number of matching rows instead of the rows.
#count
#verbose / #silent
More or less output during a rollback.
#silent
Example: /warden rollback u:Griefer t:1d r:#global undoes everything one player did in the last day, in every world.
Permissions
Permission Default Grantswarden.*
op
Everything below (except warden.give).
warden.use
everyone
Access to the /warden command itself (sub-commands still need their own node).
warden.inspect
op
The block inspector.
warden.lookup
op
Lookups and all warden.lookup.* children.
warden.lookup.near
op
/warden near.
warden.lookup.block
op
Block data lookups.
warden.lookup.container
op
Container transaction lookups.
warden.lookup.inventory
op
Inventory transaction lookups.
warden.lookup.item
op
Item transaction lookups.
warden.lookup.kill
op
Entity kill lookups.
warden.lookup.spawn
op
Entity spawn lookups.
warden.lookup.click
op
Player interaction lookups.
warden.lookup.sign
op
Sign text lookups.
warden.lookup.chat
op
Chat lookups.
warden.lookup.command
op
Command lookups.
warden.lookup.session
op
Login and logout lookups.
warden.lookup.username
op
Username change lookups.
warden.rollback
op
Rollbacks.
warden.restore
op
Restores.
warden.purge
op
Purging old data.
warden.teleport
op
Teleporting to logged locations.
warden.reload
op
Reloading the configuration.
warden.status
op
/warden status.
warden.consumer
op
Pausing and resuming the logging queue.
warden.help
op
/warden help.
warden.networking
op
The networking API used by companion client mods.
Configuration overview
Everything lives in plugins/Warden/config.yml. Each option has a comment explaining it. The most important ones:
database-type
duckdb
Database engine: duckdb, sqlite, mysql or clickhouse.
table-prefix
co_
Table prefix for MySQL and ClickHouse. Embedded engines always use co_.
mysql-host, mysql-port, mysql-database, mysql-username, mysql-password
127.0.0.1, 3306, database, root, empty
MySQL / MariaDB connection.
clickhouse-*
local defaults
ClickHouse 26.1+ connection settings.
duckdb-memory-limit, duckdb-threads, duckdb-max-temp-directory-size
512MB, 3, 10GB
Resource limits for the embedded DuckDB engine.
language
en
Message language (edit language.yml to customize).
auto-purge
false
Delete data older than this age automatically, for example 30d or 6mo.
api-enabled
true
Let other plugins use the Warden (CoreProtect) API.
default-radius
10
Radius used when a rollback has no r:. 0 disables.
max-radius
100
Largest radius allowed in a command. 0 disables. Use r:#global to go past it.
rollback-items
true
Include items taken from containers in rollbacks.
rollback-entities
true
Include killed and player-spawned entities in rollbacks.
skip-generic-data
true
Skip noise such as zombies burning in daylight.
block-place, block-break, explosions, water-flow, lava-flow, ...
true
One toggle per logged event type. fire-extinguish is off by default.
item-transactions, item-drops, item-pickups, hopper-transactions
true
Item and container logging.
player-messages, player-commands, player-sessions, username-changes
true
Chat, command, session and name logging.
worldedit
true
Log changes made through WorldEdit / HydraNet Builder.
Per-world overrides: create plugins/Warden/<worldname>.yml and put only the options you want to change for that world (for example block-place: false).
Storage options
Engine Setup Good for DuckDB (default) Nothing. One file,database.duckdb.
Most servers. Fast lookups on large logs.
SQLite
Set database-type: sqlite. One file, database.db.
Small servers, or matching an old CoreProtect SQLite database.
MySQL / MariaDB
Set database-type: mysql and the mysql-* options. The database must exist.
Large servers, several servers sharing one log.
ClickHouse
Set database-type: clickhouse and the clickhouse-* options.
Very large logs.
Changing the engine does not copy existing data across engines; the new engine starts empty.
Migrating from CoreProtect
Warden keeps CoreProtect's database layout (same tables, same co_ prefix) and its Java API package, so moving over is a file copy.
- Stop the server and remove the CoreProtect jar.
- Rename
plugins/CoreProtect/toplugins/Warden/(or copyconfig.ymlanddatabase.db/database.duckdbinto a newplugins/Warden/). - Make sure
config.ymlpoints at the same engine as before. An older CoreProtect config withuse-mysql: trueorfalseand nodatabase-typeline is still understood (MySQL or SQLite). For MySQL, keep the samemysql-*settings andtable-prefix. - Drop in
Warden-26.0.jarand start. Warden upgrades the database schema to version 26.0 in the background on first start. Take a backup first: the upgrade is one way, and the database cannot go back to an older CoreProtect afterwards.
Add-ons and API users. Warden registers itself under the name CoreProtect as well, and the API (net.coreprotect.CoreProtectAPI) is unchanged, so plugins that hook into CoreProtect (rollback tools, anti-xray reports, and so on) work with Warden without changes.
Commands and permissions are renamed. /co becomes /warden (or /wp), and every coreprotect.* permission becomes warden.* with the same suffix. Update your permission plugin's grants (for example coreprotect.lookup becomes warden.lookup).
FAQ and troubleshooting
Does Warden contact any outside service? No. Update checks, statistics, error reporting and license checks are all removed. The only download is the database driver on first start, fetched by the server's own library loader.
The server log says the DuckDB library could not be loaded.
DuckDB needs to unpack a native library into the system temporary directory. Make sure the temp directory has free space and allows executing files, or add -Djava.io.tmpdir=/some/writable/dir to your start command. You can also switch to database-type: sqlite.
/warden says I do not have permission.
Everyone can run /warden, but each sub-command needs its own node (warden.lookup, warden.rollback, ...). Ops have all of them.
A rollback did nothing.
Check the radius: without r: the default-radius (10 blocks) applies. Use r:#global for the whole server, and check the time window with t:.
Can I run Warden and CoreProtect together? No. They share the same code base and would conflict. Remove CoreProtect.
Can I use /co?
The command is /warden with the short alias /wp. If your players are used to /co, a command alias plugin can map it.
How do I keep the database small?
Set auto-purge (for example 30d), run /warden purge t:30d by hand, or turn off logging you do not need (for example item-drops, player-interactions, hopper-transactions).
Credits
Warden is made by Team Hydra.
Based on CoreProtect by Intelli and the CoreProtect contributors, licensed under the Artistic License 2.0. Warden is a modified and renamed version as the license requires; the original copyright and license are kept in the source.
Source code: available on request from Team Hydra; a public repository is coming soon.