From 64cbc1ee683e0d65947be6ba11de84b14e705db0 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 8 Oct 2019 17:05:29 -0400 Subject: [PATCH] core update. --- src/main/java/com/songoda/epicanchors/EpicAnchors.java | 2 +- .../com/songoda/epicanchors/listeners/InteractListeners.java | 2 +- src/main/java/com/songoda/epicanchors/settings/Settings.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/songoda/epicanchors/EpicAnchors.java b/src/main/java/com/songoda/epicanchors/EpicAnchors.java index 32ff62f..2fd1c3d 100644 --- a/src/main/java/com/songoda/epicanchors/EpicAnchors.java +++ b/src/main/java/com/songoda/epicanchors/EpicAnchors.java @@ -164,7 +164,7 @@ public class EpicAnchors extends SongodaPlugin { } public ItemStack makeAnchorItem(int ticks) { - ItemStack item = getConfig().getMaterial("Main.Anchor Block Material", CompatibleMaterial.END_PORTAL_FRAME).getItem(); + ItemStack item = getCoreConfig().getMaterial("Main.Anchor Block Material", CompatibleMaterial.END_PORTAL_FRAME).getItem(); ItemMeta meta = item.getItemMeta(); meta.setDisplayName(Methods.formatName(ticks, true)); ArrayList lore = new ArrayList<>(); diff --git a/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java b/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java index 97037e4..7af5b42 100644 --- a/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java +++ b/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java @@ -40,7 +40,7 @@ public class InteractListeners implements Listener { Player player = event.getPlayer(); ItemStack item = player.getItemInHand(); - if (instance.getConfig().getMaterial("Main.Anchor Block Material", CompatibleMaterial.AIR).matches(item)) { + if (instance.getCoreConfig().getMaterial("Main.Anchor Block Material", CompatibleMaterial.AIR).matches(item)) { if (instance.getTicksFromItem(item) == 0) return; anchor.setTicksLeft(anchor.getTicksLeft() + instance.getTicksFromItem(item)); diff --git a/src/main/java/com/songoda/epicanchors/settings/Settings.java b/src/main/java/com/songoda/epicanchors/settings/Settings.java index 0ed520b..a74ede9 100644 --- a/src/main/java/com/songoda/epicanchors/settings/Settings.java +++ b/src/main/java/com/songoda/epicanchors/settings/Settings.java @@ -11,7 +11,7 @@ import java.util.stream.Collectors; public class Settings { - static final Config config = EpicAnchors.getInstance().getConfig().getCoreConfig(); + static final Config config = EpicAnchors.getInstance().getCoreConfig(); public static final ConfigSetting NAMETAG = new ConfigSetting(config, "Main.Name Tag", "&6Anchor &8(&7{REMAINING}&8)", "The anchor name tag used on the item and in the hologram.");