mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-28 03:19:25 +00:00
Removed references to tiers being called crystals
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -27,12 +27,12 @@ public class Tiers {
|
||||
private static final EcoArmorPlugin PLUGIN = EcoArmorPlugin.getInstance();
|
||||
|
||||
/**
|
||||
* Registered crystals.
|
||||
* Registered tiers.
|
||||
*/
|
||||
private static final BiMap<String, Tier> BY_NAME = HashBiMap.create();
|
||||
|
||||
/**
|
||||
* Sets that exist by default.
|
||||
* Tiers that exist by default.
|
||||
*/
|
||||
private static final List<String> 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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user