Updated config string getters

This commit is contained in:
Auxilor
2021-12-21 14:57:03 +00:00
parent 4fa90fabd5
commit f8bd6f2547
3 changed files with 5 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ public class CommandEnchantinfo extends PluginCommand {
if (enchantment1 instanceof EcoEnchant enchant) {
conflictNames.add(enchant.getDisplayName());
} else {
conflictNames.add(this.getPlugin().getLangYml().getString("enchantments." + enchantment1.getKey().getKey() + ".name"));
conflictNames.add(this.getPlugin().getLangYml().getFormattedString("enchantments." + enchantment1.getKey().getKey() + ".name"));
}
}));
@@ -101,7 +101,7 @@ public class CommandEnchantinfo extends PluginCommand {
if (allConflicts.length() >= 2) {
allConflicts = allConflicts.substring(0, allConflicts.length() - 2);
} else {
allConflicts = this.getPlugin().getLangYml().getString("no-conflicts");
allConflicts = this.getPlugin().getLangYml().getFormattedString("no-conflicts");
}
Set<Material> targets = enchantment.getTargetMaterials();
@@ -132,7 +132,7 @@ public class CommandEnchantinfo extends PluginCommand {
if (allTargets.length() >= 2) {
allTargets = allTargets.substring(0, allTargets.length() - 2);
} else {
allTargets = this.getPlugin().getLangYml().getString("no-targets");
allTargets = this.getPlugin().getLangYml().getFormattedString("no-targets");
}
String maxLevel = String.valueOf(enchantment.getMaxLevel());

View File

@@ -49,7 +49,7 @@ public class DescriptionOptions extends PluginDependent<EcoPlugin> {
public void update() {
threshold = this.getPlugin().getConfigYml().getInt("lore.describe.before-lines");
enabled = this.getPlugin().getConfigYml().getBool("lore.describe.enabled");
color = this.getPlugin().getLangYml().getString("description-color");
color = this.getPlugin().getLangYml().getFormattedString("description-color");
showingAtBottom = this.getPlugin().getConfigYml().getBool("lore.describe.at-bottom");
}

View File

@@ -260,7 +260,7 @@ public abstract class Spell extends EcoEnchant {
if (cooldown > 0) {
if (!this.hasFlag("no-cooldown-message")) {
if (this.getPlugin().getConfigYml().getBool("types.special.cooldown-in-actionbar")) {
String message = this.getPlugin().getLangYml().getString("messages.on-cooldown")
String message = this.getPlugin().getLangYml().getFormattedString("messages.on-cooldown")
.replace("%seconds%", String.valueOf(cooldown))
.replace("%name%", EnchantmentCache.getEntry(this).getRawName());