Open LcyDev opened 1 year ago
My idea now is add into config version: 1.0.0 and if config is changed by new release, rename old config and generate new or generate into config new values.
This "config broken" mean editing by user ? Or in released plugin ?
This "config broken" mean editing by user ? Or in released plugin ?
Basically if the plugin can't load the config, no matter the reason it will rename it to old_config
and save a new config.
It should also say warn in the console that this happened and maybe disable itself
Basically this commit d87a0bb implement version for config.yml, but if this is a great stuff i don't know, maybe can be implemented to stacktrace and do stuff in catch if config is malformated.
I see, it's fine for now but I will probably make something soom
I'm thinking of making a new implementation for the config soon.
Okay
Check out this library: https://github.com/Exlll/ConfigLib
Boosted-yaml seems fine.
Type of function to add or improvement
Others
Your ideas
If the config is broken (Caused by an update for example) Then, rename
config.yml
toold_config.yml
and save a newconfig.yml
This could also be done to messages
What do you think?