[Proposal] Restructure Essentials folder and files #4033
Unanswered
Andre601
asked this question in
Ideas and Feature Suggestions
Replies: 1 comment 1 reply
-
Just would like to get a little info of if this will be considered for a future major update, even if it was done differently. Would love to hear what possible issues here are. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
The current config.yml of Essentials is "bloated" to put it simply.
There are tons of settings and comments from which some may not even be used or required by everyone, since not everyone needs modules like XMPP, AntiBuild, etc.
The Idea
The idea would be to split the config up into different, dedicated config files. The inspiration for this came from looking at the EssentialsXDiscord module which has its own dedicated folder and file to configure.
While giving each module their own folder in the plugin directory would be an idea do I feel like it would be better to have them inside the Essentials directory as their own dedicated folder, to avoid unnecessary bloat of the plugins folder.
Each module would have their own directory with a config file (i.e. EssentialsXChat would have
/plugins/Essentials/EssentialsChat/config.yml
) and perhaps other files too if they're required for the module.The core features available in base Essentials should however stay as default config.yml in the Essentials folder.
General Structure Idea
Assuming all modules (including Discord one) being used should you imagine the following folder structure:
Backwards compatibility
To not break support with old configs, and forcing people to recreate stuff all over again, would I propose the idea to make Essentials run in a "backwards-compatibility" mode for the various settings and to only prioritize the new folder and file if the folder exists.
For example: Just updating Essentials won't move/migrate settings. Only when I f.e. create the
EssentialsChat
folder will Essentials create and use the Chat-specific config file there...Alternative (and if that is an option with the upcoming move to configurate) could Essentials perhaps attempt to migrate settings to the folders, if possible.
Beta Was this translation helpful? Give feedback.
All reactions