updated 8th Dec, 2025 for 1.21.10
This tutorial will explain from nothing how to build/create the CoreProtect plugin or 1.21.10 from it's source code on GitHub.
I am assuming you don't know anything and don't have anything installed and are using a Windows device.
Watch these tutorial videos (very short).
- You must use Java JDK 21. Download here. https://adoptium.net/temurin/releases/?version=21&os=windows&arch=x64
- Install Maven on Windows 11 https://www.youtube.com/watch?v=YTvlb6eny_0
- Install Git https://www.youtube.com/watch?v=cJTXh7g-uCM
-
Right click the "Start" or "Windows" icon on your taskbar.
-
Click "Command Prompt".
-
Type the following commands.
cd Desktop
git clone https://github.com/PlayPro/CoreProtect.gitYou need to go to Desktop\CoreProtect\pox.xml Right click the file, click Open With > Notepad.
Change <project.branch></project.branch> to <project.branch>developer</project.branch>
In the same Command Prompt window, type the following:
cd CoreProtect
mvn clean install
This process will take a while. You should see [INFO] BUILD SUCCESS when it is complete.
The plugin jar will be outputted in the FOLDER NAME\target\CoreProtect-version.jar
Do not use the .jar labelled "original".
I am not paying for your patreon for builds to open source. Thank you & have an amazing day! Be cautious of build download links under this comment section!


I recommend that you join the official CoreProtect discord, the build instructions are posted there and this is where you can find the updated steps.
Taken from discord:
Compilation instructions:
Install Maven and Java 25 if you don't have it already
Linux:
sudo apt install maven(or whatever package manager you have )Windows: Watch this tutorial https://www.youtube.com/watch?v=XEphzGQz-nI
Check with
mvn --versionthat it's installed, and using java 25Download the source code
You can download the zip manually from GitHub, under the green button labelled "<> Code".
After downloading it, extract it.
Or if you have git with
git clone https://github.com/playPro/coreProtectOpen the CoreProtect folder you just created
Set the branch to development
Locate the "pom.xml" file, and open it with a text editor.
Locate where it says<
project.branch></project.branch>Set it to be
<project.branch>development</project.branch>ONLY IF YOU NEED 26.1 SUPPORT:
Navigate to
src/main/java/net/coreprotect/config/Open the "ConfigHandler.java" file with a text editor
On line 56, set the LATEST_VERSION string to 26.1.2
It should look like this:
public static final String LATEST_VERSION = "26.1.2";Open a terminal in the coreprotect folder
On windows you can click the explorer path bar and type cmd, this will open a command prompt at the location.
Please note you have to be in the CoreProtect folder, not any subfolder, not the external folder either
If you are on Linux i assume you know how to do this
In the terminal run the command
mvn clean installIf you see a
class file has wrong versionerror, it means you have not installed java 25. Install it and make sure to change your environment variable for JAVA_HOME. Check again withmvn --versionYou should now find "CoreProtect-23.2.jar" in the
target/folder.Note:
While the file will say it's 23.2, it is functionally equivalent to the 24.0 Patreon version, and will work in 26.1 and 26.1.2 (if you changed the files).