From 96d67bfe81cf0606baab8902c50d82d56f8df487 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 19 Nov 2021 09:11:00 +0000 Subject: [PATCH] Updated string getters --- build.gradle | 2 +- .../src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java | 2 +- .../java/com/willfp/ecoenchants/enchantments/EcoEnchant.java | 2 +- .../main/java/com/willfp/ecoenchants/softtouch/SoftTouch.java | 2 +- .../java/com/willfp/ecoenchants/transmission/Transmission.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 7309a8c7..49d48275 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ allprojects { } dependencies { - compileOnly 'com.willfp:eco:6.12.1' + compileOnly 'com.willfp:eco:6.13.11' compileOnly 'org.jetbrains:annotations:19.0.0' diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java index 7e7ac0f5..3b276cb3 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java @@ -157,7 +157,7 @@ public class EcoEnchantsPlugin extends EcoPlugin { @Override public String getMinimumEcoVersion() { - return "6.12.0"; + return "6.13.11"; } /** diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java index b0a151b0..cacd9a54 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java @@ -233,7 +233,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche availableFromVillager = config.getBool(EcoEnchants.OBTAINING_LOCATION + "villager"); availableFromLoot = config.getBool(EcoEnchants.OBTAINING_LOCATION + "loot"); maxLevel = config.getInt(EcoEnchants.GENERAL_LOCATION + "maximum-level", 1); - displayName = config.getString("name"); + displayName = config.getFormattedString("name"); description = config.getString("description", false); disabledWorldNames.clear(); disabledWorldNames.addAll(config.getStrings(EcoEnchants.GENERAL_LOCATION + "disabled-in-worlds")); diff --git a/eco-extensions/softtouch/src/main/java/com/willfp/ecoenchants/softtouch/SoftTouch.java b/eco-extensions/softtouch/src/main/java/com/willfp/ecoenchants/softtouch/SoftTouch.java index a45cd976..a8ce8128 100644 --- a/eco-extensions/softtouch/src/main/java/com/willfp/ecoenchants/softtouch/SoftTouch.java +++ b/eco-extensions/softtouch/src/main/java/com/willfp/ecoenchants/softtouch/SoftTouch.java @@ -62,7 +62,7 @@ public class SoftTouch extends EcoEnchant { 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("[", "").replace("]", ""); meta.setDisplayName(name); diff --git a/eco-extensions/transmission/src/main/java/com/willfp/ecoenchants/transmission/Transmission.java b/eco-extensions/transmission/src/main/java/com/willfp/ecoenchants/transmission/Transmission.java index b7e7d9bc..49285d61 100644 --- a/eco-extensions/transmission/src/main/java/com/willfp/ecoenchants/transmission/Transmission.java +++ b/eco-extensions/transmission/src/main/java/com/willfp/ecoenchants/transmission/Transmission.java @@ -27,7 +27,7 @@ public class Transmission extends Spell { Location end = player.getEyeLocation().clone().add(vector); 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; }