-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Config version || Broken config #29
Comments
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 ? |
Basically if the plugin can't load the config, no matter the reason it will rename it to 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?
The text was updated successfully, but these errors were encountered: