core update.

This commit is contained in:
Brianna 2019-10-08 17:05:29 -04:00
parent ade3694e56
commit 64cbc1ee68
3 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ public class EpicAnchors extends SongodaPlugin {
} }
public ItemStack makeAnchorItem(int ticks) { 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(); ItemMeta meta = item.getItemMeta();
meta.setDisplayName(Methods.formatName(ticks, true)); meta.setDisplayName(Methods.formatName(ticks, true));
ArrayList<String> lore = new ArrayList<>(); ArrayList<String> lore = new ArrayList<>();

View File

@ -40,7 +40,7 @@ public class InteractListeners implements Listener {
Player player = event.getPlayer(); Player player = event.getPlayer();
ItemStack item = player.getItemInHand(); 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; if (instance.getTicksFromItem(item) == 0) return;
anchor.setTicksLeft(anchor.getTicksLeft() + instance.getTicksFromItem(item)); anchor.setTicksLeft(anchor.getTicksLeft() + instance.getTicksFromItem(item));

View File

@ -11,7 +11,7 @@ import java.util.stream.Collectors;
public class Settings { 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)", 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."); "The anchor name tag used on the item and in the hologram.");