diff --git a/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/utils/SettingsManager.java b/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/utils/SettingsManager.java index 1468968..4eb1ed2 100644 --- a/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/utils/SettingsManager.java +++ b/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/utils/SettingsManager.java @@ -29,18 +29,12 @@ public class SettingsManager implements Listener { private static final Pattern SETTINGS_PATTERN = Pattern.compile("(.{1,28}(?:\\s|$))|(.{0,28})", Pattern.DOTALL); - private static ConfigWrapper defs; - private Map cat = new HashMap<>(); private final EpicFarmingPlugin instance; public SettingsManager(EpicFarmingPlugin plugin) { this.instance = plugin; - - plugin.saveResource("SettingDefinitions.yml", true); - defs = new ConfigWrapper(plugin, "", "SettingDefinitions.yml"); - defs.createNewFile("Loading data file", pluginName + " SettingDefinitions file"); Bukkit.getPluginManager().registerEvents(this, plugin); } @@ -162,16 +156,6 @@ public class SettingsManager implements Listener { lore.add(TextComponent.formatText("&5" + config.getInt(fKey))); } - if (defs.getConfig().contains(fKey)) { - String text = defs.getConfig().getString(key); - - Matcher m = SETTINGS_PATTERN.matcher(text); - while (m.find()) { - if (m.end() != text.length() || m.group().length() != 0) - lore.add(TextComponent.formatText("&7" + m.group())); - } - } - meta.setLore(lore); item.setItemMeta(meta);