-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Move kits to kits.yml #1774
Move kits to kits.yml #1774
Conversation
We will now use a separate kits.yml file. Any kits that were defined in the config.yml will be migrated over to the kits.yml file automatically on startup. Settings for createkitpastebin and first join kit were moved to this file as well.
…by deprecating kit methods.
Sorry, I do not approve of this current structure. The idea of
kits:
foo:
items: 2 Following these two points will enable us to utilise the yaml saving and not messing up config comments. Albeit, the primary rationale behind it should be the conventions. One more thing, if i'm not mistaken |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to review earlier to no avail, but the unfinished comment I wrote earlier and lost exactly reflects the changes SupaHam requested - keeping all kits under a kits
key and config options staying in config.yml
as comments will be lost when creating kits.
Also, something to bear in mind is @khobbits's suggestion that pastebin-createkit
could now default to false, as it would lead to people not noticing the new feature.
Another thing to consider is to use EssentialsUpgrade
as this appears to be the most relevant place for the config migration code to go, and allows us to track migrations easily through upgrades-done.yml
.
For some reason, yaml doesn't like uppercase configuration section keys.
…s back to original. This commit just needs to be rebased before the PR is merged.
All issues addressed. Please let me know if you guys have any further suggestions :) |
👍 |
delete branch? |
We will now use a separate kits.yml file.
Any kits that were defined in the config.yml will be migrated over to the kits.yml file automatically on startup.
Settings for createkitpastebin and first join kit were moved to this file as well.
Please let me know what your thoughts are on the implementation. I ran a test locally on the copying of kits multiple times and had no issues.