diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java index 9b44eca..255a65d 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java @@ -307,9 +307,10 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers { private void setupConfig() { settingsManager.updateSettings(); - ConfigurationSection levels = getConfig().createSection("settings.levels"); + if (!getConfig().contains("settings.levels.Level-1")) { + ConfigurationSection levels = + getConfig().createSection("settings.levels"); - if (!levels.contains("Level-1")) { levels.set("Level-1.Range", 10); levels.set("Level-1.Amount", 1); levels.set("Level-1.Cost-xp", 20);