mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-05 22:07:34 +01:00
Updated string getters
This commit is contained in:
parent
10c4e0d0d2
commit
96d67bfe81
@ -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'
|
||||
|
||||
|
@ -157,7 +157,7 @@ public class EcoEnchantsPlugin extends EcoPlugin {
|
||||
|
||||
@Override
|
||||
public String getMinimumEcoVersion() {
|
||||
return "6.12.0";
|
||||
return "6.13.11";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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"));
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user