From 957bbbc9b21899f200f6196c137143c870f1cbf9 Mon Sep 17 00:00:00 2001 From: GJ Date: Sun, 15 Sep 2013 15:58:40 -0400 Subject: [PATCH] Warn if treasures.yml is outdated. --- .../com/gmail/nossr50/config/treasure/TreasureConfig.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java index 56da821ec..f8f46bf31 100644 --- a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java +++ b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java @@ -73,6 +73,12 @@ public class TreasureConfig extends ConfigLoader { @Override 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("Excavation"); loadTreaures("Hylian");