20% OFF

Your first invoice with coupon code TAKE20
GGServers Facebook GGServers Twitter GGServers YouTube GGServers Discord GGServers Instagram GGServers TikTok GGServers Reddit

How to Set Up and Use CoreProtect Plugin

![](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/banner10_1mgbruh.png)

Plugins are an addition to your server which will make your experience better.

The best thing about plugins is that they do not need to be set up on each player’s client like mods. Players will be able to join with the normal Minecraft client regardless of how many plugins your server is running.

This guide will help you with setting up and using the CoreProtect plugin on your server.

# ❓ What Is CoreProtect ❓

CoreProtect is a data logging and anti-griefing plugin for your server. 

You can roll back and restore any damage.  Also, it will record data without impacting your server’s performance.

> You can read more about this plugin [here](https://docs.coreprotect.net/) in the official documentation or [here](https://www.spigotmc.org/resources/coreprotect.8631/) on the official Spigot page.

CoreProtect will store logs for any of the following actions on the entire server:

* Block Placed/ Removed
* Chat/ Messages
* Commands Used
* Logins/ Logouts
* Chests Content, Dispensers, and Furnaces
* Item Frames

So, if there is any griefing on your server, you can easily use this plugin to learn who is the griefer and also restore the area. You also have the option to restore or roll back actions done by only one player on the server or just a type of block to its initial state.

||| NOTE: You need to run as server type CraftBukkit, Spigot, or Paper to be able to use CoreProtect as it is a plugin.

# How to Install CoreProtect

To install CoreProtect on your server, you can either use the Multicraft Installer or do it manually.

||| Also, our guide for installing plugins on your server can be found [here](https://help.ggservers.com/en-us/article/how-to-install-plugins-on-your-server-1yxw90a/).

## Using the Multicraft Installer

1. Log in to your Multicraft panel [here](https://mc.ggservers.com/site/login) and stop your server.

![Stop Your Server](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/1_1ursht6.png)

2. Click on `Installers`, then on `Plugin Installer`.

![Plugin Installer](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/10_chjdj.png)

3. Search for `CoreProtect` and click on the plugin.

![CoreProtect](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/11_1iinlhr.png)

4. Select the version you want and click on `Install`.

![Install](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/12_guct23.png)

5. Start your server.

![Start Your Server](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/5_449wta.png)

## Installing the Plugin Manually

1. Log in to your Multicraft panel [here](https://mc.ggservers.com/site/login) and stop your server.

![Stop Your Server](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/1_1ursht6.png)

2. Download the plugin jar file from the official page [here](https://www.spigotmc.org/resources/coreprotect.8631/).

![CoreProtect Download](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/1_1p9jlte.png)

3. Use FileZilla to upload it to your server `plugins` folder.

![FileZilla](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/13_1cu1eif.png)

||| [Here](https://help.ggservers.com/en-us/article/how-to-connect-to-your-server-using-filezilla-yl0q5r/) is our guide for using FileZilla.

4. Start your server.

![Start Your Server](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/5_449wta.png)

# How to Use a MySQL Database

You can also link your MySQL database to the CoreProtect plugin so the information is stored there.

||| NOTE: You need to first be sure that your plan does include a MySQL database. If not, just open a ticket requesting one.

To link the CoreProtect plugin to your database, follow these next steps:

1. Log in to your Multicraft panel [here](https://mc.ggservers.com/site/login) and stop your server.

![Stop Your Server](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/1_1ursht6.png)

2. Click on `Advanced`, then on `MySQL Database`. If you have not already created the Database, click on `Create Database`.

![MySQL Database](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/5_14z6ewn.png)

![Create Database](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/4_i98gg5.png)

3. Note the connection info for your MySQL database (`Host`, `Name`, `Username`, and `Password`).

![Connection Info](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/3_ayju1w.png)

4. Go back to your main Multicraft page and click on `Files`, then on `Config Files`, and then on `Plugin Config`.

![Config Files](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/6_1fo5gkc.png)

![Plugin Configs](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/7_1yx998w.png)

5. Click on the `CoreProtect` option, then on the `config.yml` file.

![CoreProtect](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/8_1sxu6jm.png)

![config.yml](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/9_1ks8d10.png)

6. Import the connection info you noted in step number 3 and click on `Save`.

![](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/2_12ieu2d.png)

7. Start your server.

![Start Your Server](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/5_449wta.png)

# CoreProtect Commands

You can find a list with all the CoreProtect commands below:

| Command | Parameters | Effects |
| — | — | — |
| /co help |  | Display a list of commands |
| /co inspect |  | Toggle the inspector |
| /co lookup | `u:` , `t:

Here is a list with all the parameters for the mentioned commands:

| Parameter | Effects |
| — | — |
| u: | Specify the user(s) to lookup. |
| t:

# CoreProtect Inspector

The CoreProtect inspector is a useful in-game tool that you can use to get information about what changes were made to a specific block and by whom.

To enable the inspector tool, you need to use the following command:
`/co inspect`

—-

Once activated, this tool will do the following:

* If you left-click on a block, it will tell you about any other changes that have been made there in the past. A kind of block space history. It is working with items like chests and doors too, as the plugin is logging them too. For example, left-clicking on a chest will tell you who placed something inside, what it was, and when.

* If you right-click on a block, the plugin will tell you the same information, but regarding the block above the one you clicked on.

|| Note that once with the “history of the block space”, the plugin will also give you the exact usernames of the players who made the changes, and it will tell you when it happened.

So you can use the in-game inspector tool to quickly determine who griefed your server, what was changed, and when. If needed, you can also determine by clicking on a chest who stole your items and when.

# ️ How to Use the Lookup Function ️

To determine what happened in the last period on your server, you can use the `/co lookup` command. 

`/co lookup u: t:

For example, the following command will show you what the `Example` user did in the last 40 minutes:

`/co lookup u:Example t:40m`

This way, you can easily identify who has griefed your server by its history.

If you want to see what changes have been made to your server in the last 50 minutes, you can use the following command:

`/co lookup t:50m`

You are also able to look up specific blocks and see how other players on your server interacted with them. Using the following command, you can see how people interacted with the diamond blocks in the last two days:

`/co lookup b:diamond_block t:2d`

You can also look up chat logs. The following command will show you the logs of the chat for the last 6 hours:

`/co lookup a:chat t:6h`

# How to Rollback

Now that we know who griefed our server, we also need to roll back what was destroyed.

This can be done by using the following command of the CoreProtect plugin:

`/co rollback u: t:

|| Note that the rollback function restores even entities and items like the ones from the chests.

For example, you can use the following command to roll back your server by 2 hours and 30 minutes in a radius of 40 blocks:

`/co rollback t:2.5h r:40`

If you used the inspector and lookup tools to find out which player griefed your server, you can use the following command to rollback only the changes made by him in the last 1 hour, 30 minutes, and 26 seconds on a 30 block radius:

`/co rollback u:username t:1h30m26s r:30` 

The rollback function is working on entities too. So if someone is killing some of your animals on the server, you can use the following command to restore all animals killed in the last 3 hours in a 20-block radius:

`/co rollback t:3h r:20 a:kill`

# How to Clean the Entries

You will have to clean up your entries from time to time, as the CoreProtect plugin will pile up a lot of logs from changes made in the past to your server, occupying a lot of storage space on your server.

You can use the following command to purge old entries:

`/co purge t:

For example, the following command will purge all entries older than the last 24 hours within a 30-block radius:

`/co purge t:1d r:30`

This way, you will keep just the last 24 hours of data via CoreProtect for the selected zone.

The following command will purge all entries from the entire server older than the last two days:

`/co purge t:2d`

# ↩️ Creating Scheduled Purges ↩️

As said, you will have to clean your entries for the CoreProtect plugin to not fill your server storage space for no reason.

Doing it manually can be bothersome, and you can forget to do it, so let’s set up a custom command and a scheduled task that does it for us.

||| [Here](https://help.ggservers.com/en-us/article/how-to-set-up-and-use-scheduled-tasks-npe14v/) is our guide explaining the scheduled tasks feature of our Multicraft.

## Creating the Custom Command

You will have to first create a custom command through Multicraft to be able to use it with a scheduled task.

||| [Here](https://help.ggservers.com/en-us/article/how-to-create-custom-commands-using-the-multicraft-panel-1p3hnl/) is our guide for creating a custom command via the Multicraft panel.

To do so, please follow the next steps:

1. Log in to your Multicraft [here](https://mc.ggservers.com/site/login).

2. Click on `Advanced`, then on `Commands`.

![Commands](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/1_1tw8wep.png)

3. Click on `Create Command`.

![Create Command](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/2_19766qi.png)

4. Fill in the information as you see below, then click on `Create`.

* `Name:` CoreProtectPurge
* `Run:` co purge t:10d

![](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/3_1x7njvu.png)

You just created the custom command that will be added to the scheduled task!

## Creating the Scheduled Task

Now let’s create the actual scheduled task:

1. Go back to your main Multicraft server page.

2. Click on `Advanced`, then on `Scheduled Tasks`.

![Scheduled Tasks](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/5_jtk6w7.png)

3. Click on `New Task`.

![New Task](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/4_43w8mm.png)

4. Fill in the information as you see below, then click on `Create`.

* `Name:` CoreProtectPurge Task
* `Scheduled Time:` Just move the `Minute` cursor forward a little so the task will start minutes later after the moment when you create it.
* `Interval:` Check the box, then set it to 10 days.
* `Command:` CoreProtectPurge

![](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/6_1hr1njy.png)

|| NOTE: When you create a new task, the `Scheduled Time` will automatically be set to the actual one, so if you want a task that will start in 5 minutes, for example, just set the time to 5 minutes above in this section.

Now you just created the scheduled task that will purge the CoreProtect entries on its own from ten to ten days.

| If you find any issues setting up or using CoreProtect on your server, please contact us on live chat or via the [ticket system](https://help.ggservers.com/en-us/article/how-to-open-a-support-ticket-qjzuyd/).

# ❕Useful Links❕

– [How to Set Up and Use LuckPerms](https://help.ggservers.com/en-us/article/how-to-set-up-and-use-luckperms-9eqlef/)
– [How to Set Up and Use WorldEdit Plugin](https://help.ggservers.com/en-us/article/how-to-set-up-and-use-worldedit-plugin-672714/)
– [How to Set Up and Use EssentialsX](https://help.ggservers.com/en-us/article/how-to-set-up-and-use-essentialsx-li3327/)

Leave a Comment

CAPTCHA ImageChange Image