From 17b652fcc07c1f76a259ee3cfdedd16ffa455598 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 1 Jul 2021 09:52:21 +1200 Subject: [PATCH] Add untested fix for #576 --- .../me/libraryaddict/disguise/disguisetypes/Disguise.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index d29c0d73..a767240e 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -29,6 +29,7 @@ import me.libraryaddict.disguise.utilities.reflection.NmsVersion; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; import me.libraryaddict.disguise.utilities.translations.LibsMsg; import net.md_5.bungee.api.ChatMessageType; +import net.md_5.bungee.api.chat.BaseComponent; import org.bukkit.Bukkit; import org.bukkit.NamespacedKey; import org.bukkit.boss.BarColor; @@ -357,7 +358,9 @@ public abstract class Disguise { removeBossBar(); - BossBar bar = Bukkit.createBossBar(getBossBar(), LibsMsg.ACTION_BAR_MESSAGE.get(getDisguiseName()), getBossBarColor(), getBossBarStyle()); + BossBar bar = Bukkit.createBossBar(getBossBar(), + BaseComponent.toLegacyText(DisguiseUtilities.getColoredChat(LibsMsg.ACTION_BAR_MESSAGE.get(getDisguiseName()))), getBossBarColor(), + getBossBarStyle()); bar.setProgress(1); bar.addPlayer((Player) getEntity()); }