This tutorial will explain from nothing how to build/create the CoreProtect plugin or 1.21 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.git
You need to go to Desktop\CoreProtect\src\main\resources\plugin.yml and open the "plugin.yml" file in Notepad.
Change branch: ${project.branch}
to branch: developement
on line 4.
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".
On their discord they say it should be 23.0:
„ There's a bug that tells you in-game that version 23.1 is available, which is probably why some have set it to 23.1 when they compile. But the devleoper recommended setting it to 23.0. Basically if you set it to any number higher than 23.0 right now, there is a chance if there are untested database patches included in the source, that those patches would be prematurely applied to your database which could cause future issues.“
That makes it hard to keep tutorials up to date 🤔