From 9056bb61e752901496f781b987c7425134ba92fc Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 19 Feb 2021 16:25:44 +0000 Subject: [PATCH] Removed references to tiers being called crystals --- .../com/willfp/ecoarmor/commands/CommandEagive.java | 11 ++++++----- .../main/java/com/willfp/ecoarmor/upgrades/Tiers.java | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/commands/CommandEagive.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/commands/CommandEagive.java index 58b784e..03c1ae8 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/commands/CommandEagive.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/commands/CommandEagive.java @@ -31,7 +31,8 @@ public class CommandEagive extends AbstractCommand { } @Override - public @Nullable AbstractTabCompleter getTab() { + @Nullable + public AbstractTabCompleter getTab() { return new TabcompleterEagive(this); } @@ -141,16 +142,16 @@ public class CommandEagive extends AbstractCommand { } if (itemNamespace.equalsIgnoreCase("crystal")) { - Tier crystal = Tiers.getByName(itemKey); - if (crystal == null) { + Tier tier = Tiers.getByName(itemKey); + if (tier == null) { sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-item")); return; } String message = this.getPlugin().getLangYml().getMessage("give-success"); - message = message.replace("%item%", crystal.getCrystal().getItemMeta().getDisplayName()).replace("%recipient%", reciever.getName()); + message = message.replace("%item%", tier.getCrystal().getItemMeta().getDisplayName()).replace("%recipient%", reciever.getName()); sender.sendMessage(message); - items.add(crystal.getCrystal()); + items.add(tier.getCrystal()); if (args.size() >= 3) { try { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tiers.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tiers.java index 7c4af27..58fdcd4 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tiers.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tiers.java @@ -27,12 +27,12 @@ public class Tiers { private static final EcoArmorPlugin PLUGIN = EcoArmorPlugin.getInstance(); /** - * Registered crystals. + * Registered tiers. */ private static final BiMap BY_NAME = HashBiMap.create(); /** - * Sets that exist by default. + * Tiers that exist by default. */ private static final List DEFAULT_TIER_NAMES = Arrays.asList( "iron", @@ -69,7 +69,7 @@ public class Tiers { } /** - * Add new {@link Tier} to EcoArmor. + * Add new {@link Tier} to EcoArmor.c * * @param tier The {@link Tier} to add. */