From d1263d6477ed7e695a303ac914135ea137b6f38f Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Wed, 17 Aug 2022 16:41:39 +0200 Subject: [PATCH] Key combo casting changes. --- .../Indyuce/mmocore/api/PlayerActionBar.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/PlayerActionBar.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/PlayerActionBar.java index 22ed5a32..ad7fd332 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/PlayerActionBar.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/PlayerActionBar.java @@ -42,24 +42,6 @@ public class PlayerActionBar extends BukkitRunnable { data.getPlayer().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText( holders.apply(data.getPlayer(), data.getProfess().hasActionBar() ? data.getProfess().getActionBar() : config.format))); - - /* - data.getPlayer().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(MMOCore.plugin.placeholderParser.parse(data.getPlayer(),data.getProfess().hasActionBar() ? data.getProfess().getActionBar() : config.format)); - MythicLib.plugin.parseColors((data.getProfess().hasActionBar() ? data.getProfess().getActionBar() : config.format) - .replace("{health}", digit.format(data.getPlayer().getHealth())) - .replace("{max_health}", StatManager.format("MAX_HEALTH", data.getPlayer().getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue())) - .replace("{mana_icon}", data.getProfess().getManaDisplay().getIcon()) - .replace("{mana}", digit.format(data.getMana())) - .replace("{max_mana}", StatManager.format("MAX_MANA", data.getStats().getStat("MAX_MANA"))) - .replace("{stamina}", digit.format(data.getStamina())) - .replace("{max_stamina}", StatManager.format("MAX_STAMINA", data.getStats().getStat("MAX_STAMINA"))) - .replace("{stellium}", digit.format(data.getStellium())) - .replace("{max_stellium}", StatManager.format("MAX_STELLIUM", data.getStats().getStat("MAX_STELLIUM"))) - .replace("{class}", data.getProfess().getName()) - .replace("{xp}", MythicLib.plugin.getMMOConfig().decimal.format(data.getExperience())) - .replace("{armor}", StatManager.format("ARMOR", data.getPlayer().getAttribute(Attribute.GENERIC_ARMOR).getValue())) - .replace("{level}", "" + data.getLevel()) - .replace("{name}", data.getPlayer().getDisplayName())))));*/ } }