Removed setting definitions.

This commit is contained in:
Brianna O'Keefe 2018-12-28 14:50:29 -05:00
parent f7132f32ee
commit eb681b66c0
2 changed files with 0 additions and 29 deletions

View File

@ -29,7 +29,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 Map<Player, String> cat = new HashMap<>();
@ -37,10 +36,6 @@ public class SettingsManager implements Listener {
public SettingsManager(EpicHoppersPlugin 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);
}
@ -161,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);

View File

@ -1,14 +0,0 @@
ECO-Icon: 'This is the default icon that will be used for the Economy upgrade button.'
XP-Icon: 'This is the default icon that will be used for the Experience upgrade button.'
Upgrading-enabled: 'Setting this to true will allow users to access the upgrade window.'
Upgrade-with-eco: 'Setting this to true will allow users to use Economy to upgrade their hoppers.'
Upgrade-with-xp: 'Setting this to true will allow users to use Experience to upgrade their hoppers.'
On-upgrade-particles: 'Setting this to true will cause particles to emit when a hopper is upgraded.'
Teleport-hoppers: 'These are the default levels, the amount of levels can be expanded if you want, just add another level to the bottom of the list while keeping numeric order. Allows you to enable or disable teleporting with hoppers'
Hop-Tick: 'This is the tick speed for synced hoppers.'
Sync-Timeout: 'This is the timeout that if reached will cancel a link.'
Glass-Type: 'This is the id of the glass used for the background in the guis.'
Rainbow-Glass: 'If this is enabled the glass background will be randomized colors. '
Limit-Hoppers-Per-Chunk: 'If enabled this will limit the amount hoppers per chunk'
Hopper-Limit: 'This is the amount of allowed hoppers per chunk.'
Upgrade-particle-type: 'This is the type of particle an upgrade will emit.'