Simplix-Softworks / SimplixStorage

Library to store data in a better way
Apache License 2.0
138 stars 25 forks source link

[Feature Request] Reload callback #36

Closed Ghost-chu closed 3 years ago

Ghost-chu commented 3 years ago

Is your feature request related to a problem? Please describe. My plugin needs to do something while reloading. I like auto-reloads, it's smart, but I didn't found some like callback stuff.

Describe the solution you'd like A clear and concise description of what you want to happen. Some thing like:

Config config = LightningBuilder.fromFile( FILE ).reloadCallback( (config) -> { /* do something */ }  ).createConfig();

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. nothing

Additional context Add any other context or screenshots about the feature request here. nope

KotlinFactory commented 3 years ago

Hey Ghost-chu,

thats a great idea! We will implement it for the next release!

Regards, Leonhard

KotlinFactory commented 3 years ago

Added in the latest release.