Hello I want to make an enchantment addon for factions, but dont make to make a separate plugin. I've never done this before but is there a way I could get the whole code for massivecore and just modify the source code?
Decompile it and copy it into your own project Not suggested though as this wouldn't work through version changes etc... just make another plugin that uses their API Sent from my iPhone using Tapatalk
The API is pretty powerful I agree that is one big complicated program and the source code isn't super easy to navigate for a beginner. You don't even need to decompile it though their source is available on their GitHub page Sent from my iPhone using Tapatalk
When the plugin is open source, and you decompile? The heck. Fork it. And clone it. Using git. Boom you have the project. GitHub: ^^
Didn't realise it was open source, regardless have a solution for all plugins rather than some. Sent from my iPhone using Tapatalk
That thinking is rather wrong. Well, when a plugin is not open source, the developer mostly don't want you to view the code (often all rights reserved by default). I often respect that. However, I do not see any wrongdoing in it if it is for your own learning. I always ask everyone to respect the choice of the developer to keep the source not open to the public. But yeah you can use any can use IntelliJ's built in decompiler (JD-GUI, you can also download this standalone just google it).
I would argue that compiling from source is far better than decompiling a plugin because often decompilers will make assumptions and sometimes fail to properly/accurately decode all methods. This can lead to bugs not present in the original plugin and it is up to you to find them. Compiling from source code does not have these issues. Sent from my iPhone using Tapatalk
I'm not disagreeing with you, but I have to point out that Java is one of the few compiled (or interpreted, depending on how you look at it) languages that decompiles very cleanly, assuming no obfuscation techniques.