Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamnotpayingforyourpatreon/20371ddfb318c49dda48fc537032d923 to your computer and use it in GitHub Desktop.
Save iamnotpayingforyourpatreon/20371ddfb318c49dda48fc537032d923 to your computer and use it in GitHub Desktop.
Compile & Download CoreProtect 1.21

Tutorial of Downloading and Building the CoreProtect Plugin

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.

Prerequisites

Watch these tutorial videos (very short).

Start Compiling

  • 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

AFTER USING GIT CLONE

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.

i_am_not_paying_for_your_patreon_to_get_builds_for_open_source_code_2

cd CoreProtect
mvn clean install

i_am_not_paying_for_your_patreon_to_get_builds_for_open_source_code_3

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_to_get_builds_for_open_source_code_2

@Tr3yWay996
Copy link

is such a plugin considered pirated?
If Buying isn't owning then Pirating isn't stealing

Bro can't even reply properly, it's not pirating or anything, my guy

@Tr3yWay996
Copy link

thanks for share it, for anyone who don't know too much about this is very helpful

Yeah! For once, I agree with a comment in this style, you didn't say it was "scummy" like some other dumb users here that's nice, that's actually true it's great for people who don't know they can build from source things for themselves

@Azoraqua
Copy link

Azoraqua commented Jan 9, 2025

is such a plugin considered pirated?
If Buying isn't owning then Pirating isn't stealing

Bro can't even reply properly, it's not pirating or anything, my guy

It may or may not still violate copyright laws for that matter. As copyright can prohibit redistribution. Then again, if it’s open-source, it’s unlikely to be the case.

@Azoraqua
Copy link

Azoraqua commented Jan 9, 2025

Absolute legend, can't believe they're gatekeeping this update, so scummy. Thanks!

"can't believe they're gatekeeping this update, so scummy" Bro listen to yourself speaking because its crazy what kind of bs you're spitting lol

It’s laughable even. Even worse, think about it, quite a few people make income from their server, even those made with entirely pre-made free plugins.

Yet even those people are willing to complain if they have to pay for a plugin.

@ScuroK
Copy link

ScuroK commented Jan 9, 2025

It’s simply unusual in the Spigot community to sell a plugin like that. Normally, premium plugins aren’t sold in a way that requires paying for every update. Of course, the developer can do it however he want.
but people who dont like it can also express how they feel about it.. thats it.

@DereC4
Copy link

DereC4 commented Jan 9, 2025

Alright seems like a few of you got a teeeensy bit irked at my statement over an open source video game tool. To explain a bit more, it's just pretty unusual for a sandbox video game plugin to paywall their content, because normally they are available to the public on Modrinth and Spigot sites.

As CS oriented people, y'all have the express knowledge of actually knowing how to work around all these technical hoops and that's not representative of the typical person who may be just trying to run a video game world with their friends.

Hope u guys have a good day tho; there's no need for the rudeness when we express our own opinions :D

@HaTInAnd
Copy link

HaTInAnd commented Jan 9, 2025

Thanks for sharing this, even though you can still compile it yourself, I find it scummy that the original dev locked the tool behind a paywall

Imagine paying for something that someone else made in their free time, release it and maintain it… How dare they! /s
A developer needs to make money to live too. Besides, it’s not even fully behind a paywall, just the latest version. Which to me seems entirely reasonable.

They are just kiddos that only know how to cry, no worries. They did the same when a popular gmod add-on came by, GWater I know this behavior and it's so dumb lol but it's internet it's like this

and you're some grown ass man shitting on said kids.

Like I fully resonate with the principles you guys are preaching, but he's just some college guy trying to play a kids game with his friends

And he DOES have a point in the fact that people have to go through all these steps designed to discourage players from being able to enjoy a VIDEO GAME MOD. If it's ultimately available, why not just continue releasing to the public like most Minecraft developers?

Attitudes like those above are exactly why our major gets the bad rap it does.

@Tr3yWay996
Copy link

Thanks for sharing this, even though you can still compile it yourself, I find it scummy that the original dev locked the tool behind a paywall

Imagine paying for something that someone else made in their free time, release it and maintain it… How dare they! /s
A developer needs to make money to live too. Besides, it’s not even fully behind a paywall, just the latest version. Which to me seems entirely reasonable.

They are just kiddos that only know how to cry, no worries. They did the same when a popular gmod add-on came by, GWater I know this behavior and it's so dumb lol but it's internet it's like this

and you're some grown ass man shitting on said kids.

Like I fully resonate with the principles you guys are preaching, but he's just some college guy trying to play a kids game with his friends

And he DOES have a point in the fact that people have to go through all these steps designed to discourage players from being able to enjoy a VIDEO GAME MOD. If it's ultimately available, why not just continue releasing to the public like most Minecraft developers?

Attitudes like those above are exactly why our major gets the bad rap it does.

Not a mod tho, it's not essential it's an anti grief plugin for servers meaning they complain about smth being paid, when they themselves use it on a server and its help them quite a bit, but also they don't understand why its, so-called "behind a paywall" (it's not btw), and It's not out to everyone because it's in active development and if anyone still want to have a build then they can do it, I could even make said builds (would contact the dev before so he knows I'm going to do it) so people like this, as you said, will be able to not go through all the trouble.

I'm not a "grown ass man shitting on said kids", I don't even shit on them, I just call out the outright bs they say and make others think the same way and things, it's like saying "It's scummy to make us pay for his hard work! How dare he!!" basically

@spencermacca
Copy link

Absolute legend, can't believe they're gatekeeping this update, so scummy. Thanks!

"can't believe they're gatekeeping this update, so scummy" Bro listen to yourself speaking because its crazy what kind of bs you're spitting lol

Are you seriously this upset that you've replied to every person saying thank you to the person who made this gist? Grow up bro.
Yes, the devs need to get money from somewhere, and I totally agree that they should be compensated for the work they do, however that be.

But, do I think it's wrong that they're pretending like you can't use the plugin for free unless your server runs a version from almost a year ago? In my opinion, yeah it is.

It's OSS, and I don't take issue with the dev making people build newer versions themselves, what I take issue with is them making it seem like the ONLY way to do this is to "subscribe to the patreon!", it's wrong, and most users will end up doing that, then cancelling after one month because they got what they wanted.

What they're doing is a little slimy, regardless of how you want to put it. @ScuroK put it really well in his comment from earlier.

Please stop blowing up my notifications with your whinging @Tr3yWay996, thanks.

@spencermacca
Copy link

And also, just another note: the dev is doing more than fine for money.

Because of this strategy he's adopted where he doesn't take builds out of the development phase, and then charges for them on his patreon, he currently is sitting on 9,102 members there.

Let's say they're paying the lowest tier of $3 per month
This equates to a total of $27,306 a month for him
That equates to $327,672 a year

Because of this ludicrous amount he's making from exclusively releasing prebuilds on his patreon, he's going to continue to do so, and as far as I can tell, not officially release builds to the public for the foreseeable future.

@ScuroK
Copy link

ScuroK commented Jan 10, 2025

Exactly. Nobody question him selling something. But its a cultural matter HOW you do it and how you communicate.

@Azoraqua
Copy link

Azoraqua commented Jan 10, 2025 via email

@spencermacca
Copy link

Even if he makes ten times as much, it’s still just something that a developer made, they should be entirely free to ask for compensation if desired.That’s how it works.

I'm not gonna argue anymore, and you guys aren't gonna make me change my mind. Wasn't even really having a go at you @Azoraqua, more the guy who said I was spitting BS for simply having an opinion.

The developer has every right to monetize their work, but transparency is the important part.

If they made it clear that you DIDN'T have to buy access to the Patreon for the plugin, and outlined clear instructions on how to build it yourself, this wouldn't be a problem.

And let's not get started on the fact that they've recently added DRM to the plugin.

@Azoraqua
Copy link

Azoraqua commented Jan 10, 2025 via email

@plushycat
Copy link

This compiles 22.4, which can't run on 1.21.3+. How do we work around this?

@spencermacca
Copy link

This compiles 22.4, which can't run on 1.21.3+. How do we work around this?

Refer to what I said above about checking out a specific commit

@plushycat
Copy link

This compiles 22.4, which can't run on 1.21.3+. How do we work around this?

Refer to what I said above about checking out a specific commit

I did use the latest commit, but that didn't work, and compiled version 22.4 regardless. Am I missing something?

@JoshNotWright
Copy link

This compiles 22.4, which can't run on 1.21.3+. How do we work around this?

Refer to what I said above about checking out a specific commit

I did use the latest commit, but that didn't work, and compiled version 22.4 regardless. Am I missing something?

https://gist.github.com/iamnotpayingforyourpatreon/20371ddfb318c49dda48fc537032d923?permalink_comment_id=5145668#gistcomment-5145668

This is what did it for me

@ScuroK
Copy link

ScuroK commented Feb 15, 2025

This compiles 22.4, which can't run on 1.21.3+. How do we work around this?

Refer to what I said above about checking out a specific commit

I did use the latest commit, but that didn't work, and compiled version 22.4 regardless. Am I missing something?

https://gist.github.com/iamnotpayingforyourpatreon/20371ddfb318c49dda48fc537032d923?permalink_comment_id=5145668#gistcomment-5145668

This is what did it for me

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 🤔

@lolmak
Copy link

lolmak commented Feb 22, 2025

Does anyone know how to get version V23.2 RC3?

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.423.2
[line 7] <project.branch></project.branch> → <project.branch>master</project.branch>

@Nxtyrs
Copy link

Nxtyrs commented Mar 14, 2025

Does anyone know how to fix this? theres more errors below that but it just says that a class is the wrong version and that it should be 61.0 instead of the current 65.0
image

@ashap5
Copy link

ashap5 commented Mar 14, 2025

Does anyone know how to fix this? theres more errors below that but it just says that a class is the wrong version and that it should be 61.0 instead of the current 65.0 image

it is trying to compile using java17
change your default java to 21

@Nxtyrs
Copy link

Nxtyrs commented Mar 14, 2025

Does anyone know how to fix this? theres more errors below that but it just says that a class is the wrong version and that it should be 61.0 instead of the current 65.0 image

it is trying to compile using java17 change your default java to 21

thats weird... i downloaded java 21 and changed the path thing, ill try it again thanks

@Nxtyrs
Copy link

Nxtyrs commented Mar 14, 2025

image
Still didnt work

@ashap5
Copy link

ashap5 commented Mar 15, 2025

hmm try using openjdk and not temurin

@ashap5
Copy link

ashap5 commented Mar 15, 2025

jdk21-openjdk 21.0.6.u7-2
this version worked for me
but i am on linux so not sure about windows
i can send you the compiled file if you want

@Nxtyrs
Copy link

Nxtyrs commented Mar 15, 2025

jdk21-openjdk 21.0.6.u7-2 this version worked for me but i am on linux so not sure about windows i can send you the compiled file if you want

thanks, ill try that

@Nxtyrs
Copy link

Nxtyrs commented Mar 15, 2025

it still didnt work... could you please send me the compiled file? thanks

@Nxtyrs
Copy link

Nxtyrs commented Mar 16, 2025

nevermind... just fixed the issue, make sure to set the system variable 'JAVA_HOME' to java version 21, not just the path one, and verify it with mvn --version
image
image

@TheDogg
Copy link

TheDogg commented Mar 25, 2025

Does anyone know how to get version V23.2 RC3?

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.423.2 [line 7] <project.branch></project.branch> → <project.branch>master</project.branch>

Question for you, I can't find a build.gradle file in the repo, is that normal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment