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".
Just change some values in the following files:
build.gradle
[line 10] String projectVersion = '22.4' → String projectVersion = '23.2'
pom.xml
[line 5] 22.4 → 23.2
[line 7] <project.branch></project.branch> → <project.branch>master</project.branch>