ModulesManager handles the registration, loading, and management of plugin modules that extend SuperiorSkyblock2 functionality.
Methods
registerModule
The module to register
The module file to register from
The registered plugin module (when registering from file)
If there’s an error reading the module file
If there’s an error loading the module class
unregisterModule
The module to unregister
getModule
The name of the module
The module instance or null if not found
getModules
Collection of all active modules
Module Loading
enableModule
The module to load
enableModules
The module load time to load modules with
ModuleLoadTime
TheModuleLoadTime enum specifies when a module should be loaded during plugin initialization. Common values include:
BEFORE_WORLD_CREATION- Load before worlds are createdNORMAL- Load during normal plugin initializationAFTER_MODULE_DATA- Load after module data is loaded