From db1091215f0bee2aa3bf347ae03119c8420cf2a6 Mon Sep 17 00:00:00 2001 From: Brianna Date: Thu, 18 Apr 2019 00:22:54 -0400 Subject: [PATCH] Removed old settings definitions file. --- .../ultimatestacker/utils/SettingsManager.java | 15 --------------- src/main/resources/SettingDefinitions.yml | 0 2 files changed, 15 deletions(-) delete mode 100644 src/main/resources/SettingDefinitions.yml diff --git a/src/main/java/com/songoda/ultimatestacker/utils/SettingsManager.java b/src/main/java/com/songoda/ultimatestacker/utils/SettingsManager.java index 02b03c7..3aef3a7 100644 --- a/src/main/java/com/songoda/ultimatestacker/utils/SettingsManager.java +++ b/src/main/java/com/songoda/ultimatestacker/utils/SettingsManager.java @@ -23,7 +23,6 @@ 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 final UltimateStacker instance; private String pluginName = "UltimateStacker"; private Map cat = new HashMap<>(); @@ -31,10 +30,6 @@ public class SettingsManager implements Listener { public SettingsManager(UltimateStacker 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); } @@ -150,16 +145,6 @@ public class SettingsManager implements Listener { lore.add(Methods.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(Methods.formatText("&7" + m.group())); - } - } - meta.setLore(lore); item.setItemMeta(meta); diff --git a/src/main/resources/SettingDefinitions.yml b/src/main/resources/SettingDefinitions.yml deleted file mode 100644 index e69de29..0000000