CoreProtect: how to check and roll back griefing
CoreProtect logs every change in the world: placed and broken blocks, opened chests, killed mobs. With it you can see who caused damage and undo it without restoring the whole world.
Installation
Install CoreProtect in the Plugins tab and restart the server. The plugin starts logging right away. It cannot log anything that happened before it was installed.
Who broke a block
Type /co i to turn on inspect mode. Left click a block to see its history. Right click a chest to see who took items out of it. Type /co i again to turn inspect mode off.
Rolling back changes
Undo everything a player did in the last 24 hours within 20 blocks:
/co rollback u:Nick t:24h r:20
u:- the player,t:- the time, for example30m,2h,3d,r:- the radius in blocks,#globalmeans the whole world.
If you rolled back too much, type /co restore with the same parameters.
MySQL database
On a big server it is better to keep the logs in MySQL. Create a database in the Databases tab and set this in plugins/CoreProtect/config.yml:
use-mysql: true
table-prefix: co_
mysql-host: ADDRESS_FROM_PANEL
mysql-port: 3306
mysql-database: DATABASE_NAME
mysql-username: USERNAME
mysql-password: PASSWORD
You can copy the details in the panel by clicking the eye icon next to the database. Then restart the server.
Frequently asked questions
The CoreProtect data takes up a lot of space.
Delete old entries, for example everything older than 30 days: /co purge t:30d.
Does CoreProtect replace backups?
No. It undoes what players did, but it will not help with a corrupted world. Make backups as well.
Pepe