Plugin Dependancy

I have a really cool plugin build I’d like to share aloud.

So the build goes,

you have ‘raw’ classes full of enums and functions that have an empty body (and throws if need-be)
You jar those classes, with their packages
These functions you made are in the program that uses the plugin. Note the packages need to be the same and stuff
Extend the abstract class plugin which has 3 functions: init, run, close
Export your jar, without the raw classes jar
You load the settings file which comes in the jar
You load the class using forName() with urlclassloader, using the plugin class found in the settings
Example: main: com.whatever.MainPlugin
Utilize the .newInstance() Plugin you have to do stuff

So in my terrain editor, I just built up something like this. Works flawlessly and love it!