What is module ?
The module is a separated JAR which adds more functions to core library.
Module must be shade in your plugin JAR, thanks to maven or gradle.
Every module must be registered in configure method in your Main class.
How to register module?
Module can be registered in two ways.
Simple module registration, by put new instance of module to registerModules method
Load before others modules, but put new instance of module in to constructor of LibraryConfiguration class.
The first way:
The second way:
This way to register module, must be used rarely, only in exceptional situations.