summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/hypixel
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-13 12:43:11 +0200
committerGitHub <noreply@github.com>2024-05-13 12:43:11 +0200
commit46a27942a8881172063055dc4780da01642fb219 (patch)
tree9f61dcad8246c2647e7b016d0652078ce9e7ed0f /src/main/java/at/hannibal2/skyhanni/data/hypixel
parent4e98f4a176fb8bfe2b9c9afcdb4b941d5b721704 (diff)
downloadskyhanni-46a27942a8881172063055dc4780da01642fb219.tar.gz
skyhanni-46a27942a8881172063055dc4780da01642fb219.tar.bz2
skyhanni-46a27942a8881172063055dc4780da01642fb219.zip
Fix: wrong chat color when using hypixel command /show (#1781)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/hypixel')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
index 035a166bb..b5108c6ac 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
@@ -13,8 +13,10 @@ import at.hannibal2.skyhanni.features.bingo.BingoAPI
import at.hannibal2.skyhanni.features.chat.playerchat.PlayerChatFilter
import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager
import at.hannibal2.skyhanni.features.misc.compacttablist.AdvancedPlayerList
+import at.hannibal2.skyhanni.utils.ChatUtils.changeColor
import at.hannibal2.skyhanni.utils.ComponentMatcherUtils.matchStyledMatcher
import at.hannibal2.skyhanni.utils.ComponentSpan
+import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.StringUtils
import at.hannibal2.skyhanni.utils.StringUtils.applyFormattingFrom
@@ -140,7 +142,10 @@ class PlayerNameFormatter {
level = event.levelComponent
)
)
- appendSibling(event.action.intoComponent())
+
+ appendText(" ")
+ appendSibling(event.action.intoComponent().changeColor(LorenzColor.GRAY))
+
appendText(" ")
appendSibling(event.item.intoComponent())
}) ?: return