Warn if treasures.yml is outdated.

This commit is contained in:
GJ 2013-09-15 15:58:40 -04:00
parent 17faf1561f
commit 957bbbc9b2

View File

@ -73,6 +73,12 @@ public class TreasureConfig extends ConfigLoader {
@Override @Override
protected void loadKeys() { protected void loadKeys() {
if (config.getConfigurationSection("Treasures") != null) {
plugin.getLogger().warning("You are using an old version of the treasures.yml file.");
plugin.getLogger().warning("You should delete your current file and allow a new one to generate.");
plugin.getLogger().warning("Shake, Hylian Luck, Fishing, and Excavation will not work properly until you do.");
}
loadTreaures("Fishing"); loadTreaures("Fishing");
loadTreaures("Excavation"); loadTreaures("Excavation");
loadTreaures("Hylian"); loadTreaures("Hylian");