EconomyLite icon indicating copy to clipboard operation
EconomyLite copied to clipboard

Database load taking place too early

Open Dockter opened this issue 7 years ago • 2 comments

@Zidane was working with our Econ database and during debugging we noticed that the database load is occurring within preInit instead of onServerStart.

He noted that onServerShutdown it should write the final changes to the DB and close all connections.

Dockter avatar Aug 21 '18 16:08 Dockter

Okay, I'll look into this.

Flibio avatar Aug 24 '18 20:08 Flibio

I know that Sponge services should be ready for requests by the PostInitialization state. Doesn't this interfere with that?

Is it a major issue to load on preInit or Init?

Flibio avatar Sep 24 '18 00:09 Flibio