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())))));*/ } }