Package com.enhancedechest.config
Class ConfigMigrations
java.lang.Object
com.enhancedechest.config.ConfigMigrations
Central registry for all YAML key renames across plugin versions.
When a config or language key is renamed, add a new YamlMigrator.Rename entry here.
On startup the migrator reads the user's old key value, writes it under the new key name,
and removes the old key — all automatically.
Example: if "database.type" is renamed to "storage.backend" in 1.2.0, add:
new YamlMigrator.Rename("database.type", "storage.backend")
Order matters only when renames chain (A→B then B→C). List entries in the order they happened.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<YamlMigrator.Rename> Renames applied toconfig.yml.static final List<YamlMigrator.Rename> Renames applied tolanguage/<locale>/gui.yml.static final List<YamlMigrator.Rename> Renames applied tolanguage/<locale>/messages.yml. -
Method Summary
-
Field Details
-
CONFIG
Renames applied toconfig.yml. -
MESSAGES
Renames applied tolanguage/<locale>/messages.yml. -
GUI
Renames applied tolanguage/<locale>/gui.yml.
-