From 69f2a18218f54389fe19eabb8df89a00f0eb5671 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sun, 11 Sep 2022 08:53:00 +0200 Subject: fixed no rank player name format --- src/main/java/at/hannibal2/skyhanni/features/chat/PlayerChatFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/chat') diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerChatFilter.kt index 3e24b1130..975e29bf4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerChatFilter.kt @@ -102,7 +102,7 @@ class PlayerChatFilter { } private fun grabName(rawName: String): String? { - val nameSplit = rawName.split(" ") + val nameSplit = rawName.removeColor().split(" ") val last = nameSplit.last() val cleanName = if (last.endsWith("]")) { nameSplit[nameSplit.size - 2] -- cgit