Updated config string getters
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user