# CoreProtect [CoreProtect](https://docs.coreprotect.net) is our data logging and anti-griefing tool. We use this plugin to rollback areas, check for player actions, and backup the server.
CommandDescription
`/co help` 🛡️ 📗 Display a list of commands in-game.
`/co inspect` 🛡️ 📗 Enable the inspector. Type the command again to disable it. You can also use just `/co i`.
`/co lookup` 🛡️ 📗 Check for specific actions by a player, in an area, or even in the past set amount of time.
`/co rollback` 🛡️ 📒 Perform a rollback. Uses the same parameters as `/co lookup`. *Rollbacks can be used to revert player actions.*
`/co restore` 🛡️ 📒 Perform a restore. Uses the same parameters as `/co lookup`. *Restoring can be used to undo rollbacks or to restore player actions.*
`/co purge t:` 🛡️ 📕 Purge old block data. Useful for freeing up space on your HDD if you don't need the older data.
`/co reload` 🛡️ 📗 Reloads the configuration file.
`/co status` 🛡️ 📗 Displays the plugin status and version information.
`/co consumer` 🛡️ 📗 Console command to pause or resume consumer queue processing.
`/co near` 🛡️ 📗 Performs a lookup with a radius of 5.
`/co undo` 🛡️ 📒 Revert a rollback/restore via the opposite action.
ParameterDescription
`u:` Specifies a single user or multiple users.
`t:` Specifies weeks, days, hours, minutes, and/or seconds. Time amounts can be combined, and decimals may be used.
`r:` Specifies a spherical radius centered at your current location.
`a:` Specifies an action to check.
`i:` Specifies a block, item, or entity that the operation must include.
`e:` Specified a block, item, or entity that the operation must not include.
`#` Add a hashtag to the end of your command to perform additional actions.
ActionDescription
`a:block`blocks placed/broken
`a:+block`blocks placed
`a:-block`blocks broken
`a:chat`messages sent in chat
`a:click`player interactions
`a:command`commands used
`a:container`items taken from or put in chests
`a:+container`items put in chests
`a:-container`items taken from chests
`a:inventory`items added or removed from player inventories
`a:+inventory`items added to player inventories
`a:-inventory`items removed from player inventories
`a:item`items dropped, thrown, picked up, deposited, or withdrawn by players
`a:+item`items picked up or withdrawn by players
`a:-item`items dropped, thrown, or deposited by players
`a:kill`mobs/animals killed
`a:session`player logins/logouts
`a:+session`player logins
`a:-session`player logouts
`a:sign`messages written on signs
`a:username`username changes
## Example Commands ### Example Rollback Commands By default, if no radius is specified, a radius of 10 will be applied, restricting the rollback to within 10 blocks of you. Use `r:#global` to do a global rollback. - `/co rollback Notch t:1h` *(rollback Notch 1 hour (with default radius of 10))* - `/co rollback u:Notch,Intelli t:1h #preview` *(PREVIEW rolling back both Notch & Intelli 1 hour (with default radius of 10))* - `/co rollback u:Notch t:23h17m` *(rollback Notch 23 hours and 17 minutes (with default radius of 10))* - `/co rollback u:Notch t:1h i:stone` *(rollback ONLY stone placed/broken by Notch within the last hour (with default radius of 10))* - `/co rollback u:Notch t:1h i:stone a:-block` *(rollback ONLY stone BROKEN by Notch within the last hour (with default radius of 10))* - `/co rollback u:Notch t:1h r:#global e:stone,dirt` *(rollback EVERYTHING Notch did in the last hour EXCEPT for stone and dirt placed/broken)* - `/co rollback u:Notch t:1h r:20` *(rollback griefing Notch did in the last hour that is within 20 blocks of you)* - `/co rollback u:Notch t:1h r:#nether` *(rollback griefing Notch did in the last hour ONLY in the Nether)* - `/co rollback u:Notch t:5m a:inventory` *(rollback inventory transactions by Notch in the last 5 minutes)* - `/co rollback t:15m r:30` *(rollback everything done in the last 15 minutes by anyone within 30 blocks of you)* - `/co rollback t:15m r:#worldedit` *(rollback everything done in the last 15 minutes in a WorldEdit selection)* ### Example Lookup Commands Lookup commands are generally the same as rollback commands. The primary difference is that a default radius is not applied to lookups, meaning all lookup commands do a global search by default. - `/co lookup i:diamond_ore t:1h a:-block` *(lookup all diamond ore mined in the last hour)* - `/co lookup u:Notch t:30m a:chat` *(lookup chat messages sent by Notch in the last 30 minutes)* - `/co lookup u:Notch t:3d a:inventory` *(lookup inventory transactions by Notch in the last 3 days)* - `/co lookup u:Notch a:login` *(lookup all logins ever done by Notch)* - `/co lookup u:Notch a:login` *(lookup all logins ever done by Notch)* - `/co lookup u:Notch a:username` *(lookup previous usernames used by Notch)*