Updated string getters

This commit is contained in:
Auxilor 2021-11-19 09:11:00 +00:00
parent 10c4e0d0d2
commit 96d67bfe81
5 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ allprojects {
} }
dependencies { dependencies {
compileOnly 'com.willfp:eco:6.12.1' compileOnly 'com.willfp:eco:6.13.11'
compileOnly 'org.jetbrains:annotations:19.0.0' compileOnly 'org.jetbrains:annotations:19.0.0'

View File

@ -157,7 +157,7 @@ public class EcoEnchantsPlugin extends EcoPlugin {
@Override @Override
public String getMinimumEcoVersion() { public String getMinimumEcoVersion() {
return "6.12.0"; return "6.13.11";
} }
/** /**

View File

@ -233,7 +233,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
availableFromVillager = config.getBool(EcoEnchants.OBTAINING_LOCATION + "villager"); availableFromVillager = config.getBool(EcoEnchants.OBTAINING_LOCATION + "villager");
availableFromLoot = config.getBool(EcoEnchants.OBTAINING_LOCATION + "loot"); availableFromLoot = config.getBool(EcoEnchants.OBTAINING_LOCATION + "loot");
maxLevel = config.getInt(EcoEnchants.GENERAL_LOCATION + "maximum-level", 1); maxLevel = config.getInt(EcoEnchants.GENERAL_LOCATION + "maximum-level", 1);
displayName = config.getString("name"); displayName = config.getFormattedString("name");
description = config.getString("description", false); description = config.getString("description", false);
disabledWorldNames.clear(); disabledWorldNames.clear();
disabledWorldNames.addAll(config.getStrings(EcoEnchants.GENERAL_LOCATION + "disabled-in-worlds")); disabledWorldNames.addAll(config.getStrings(EcoEnchants.GENERAL_LOCATION + "disabled-in-worlds"));

View File

@ -62,7 +62,7 @@ public class SoftTouch extends EcoEnchant {
String entityName = displayNicely(type); String entityName = displayNicely(type);
String name = this.getConfig().getString(EcoEnchants.CONFIG_LOCATION + "name"); String name = this.getConfig().getFormattedString(EcoEnchants.CONFIG_LOCATION + "name");
name = name.replace("%type%", entityName); name = name.replace("%type%", entityName);
name = name.replace("[", "").replace("]", ""); name = name.replace("[", "").replace("]", "");
meta.setDisplayName(name); meta.setDisplayName(name);

View File

@ -27,7 +27,7 @@ public class Transmission extends Spell {
Location end = player.getEyeLocation().clone().add(vector); Location end = player.getEyeLocation().clone().add(vector);
if (player.rayTraceBlocks(distance) != null) { if (player.rayTraceBlocks(distance) != null) {
player.sendMessage(this.getPlugin().getLangYml().getPrefix() + this.getConfig().getString(EcoEnchants.CONFIG_LOCATION + "block-in-path")); player.sendMessage(this.getPlugin().getLangYml().getPrefix() + this.getConfig().getFormattedString(EcoEnchants.CONFIG_LOCATION + "block-in-path"));
return false; return false;
} }