NamelessMC / Nameless

NamelessMC is a free, easy to use & powerful website software for your Minecraft server, which includes a large range of features.
https://namelessmc.com/
MIT License
612 stars 311 forks source link

Modules having problems supporting eachother #3392

Closed partydragen closed 1 year ago

partydragen commented 1 year ago

Like registering listeners for modules with are not yet loaded cases listeners to not be made correctly with throws fatal error when event is called

This can be a issue for several features and future features

Modules should have a pre load system so classes being preloaded before the module actually being loaded or perhaps make a new onEnable with being called after all modules are pre loaded or just call the constructer

The module load_before and load_after only supporting full dependencies, But even this wont be a properly solution for modules that making listeners etc both ways of need any classes from another module during construction or something

samerton commented 1 year ago

https://github.com/NamelessMC/Nameless/pull/3397