aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt
index a8b4d808c..c9311d11e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt
@@ -60,14 +60,6 @@ class PlayerChatModifier {
private fun cutMessage(input: String): String {
var string = input
- if (SkyHanniMod.feature.chat.chatFilter) {
- if (string.contains("§r§f: ")) {
- if (PlayerChatFilter.shouldChatFilter(string)) {
- string = string.replace("§r§f: ", "§r§7: ")
- }
- }
- }
-
if (SkyHanniMod.feature.chat.playerRankHider) {
for (pattern in patterns) {
string = string.replace(pattern, "§b$1")
@@ -82,6 +74,14 @@ class PlayerChatModifier {
}
}
+ if (SkyHanniMod.feature.chat.chatFilter) {
+ if (string.contains("§r§f: ")) {
+ if (PlayerChatFilter.shouldChatFilter(string)) {
+ string = string.replace("§r§f: ", "§r§7: ")
+ }
+ }
+ }
+
if (SkyHanniMod.feature.markedPlayers.highlightInChat) {
for (markedPlayer in MarkedPlayerManager.playerNamesToMark) {
string = string.replace(markedPlayer, "§e$markedPlayer§r")