From 7c618552f30fdb717219c348b9f24dcacc651442 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 28 Mar 2023 17:10:58 +0200 Subject: Disabled player rank hider feature for now. Reenable it in couple days again. --- .../features/chat/playerchat/PlayerChatModifier.kt | 27 +++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/chat') 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 ba144e9db..b5927d31f 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 @@ -2,7 +2,6 @@ package at.hannibal2.skyhanni.features.chat.playerchat import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.LorenzChatEvent -import at.hannibal2.skyhanni.features.dungeon.DungeonMilestonesDisplay import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager import net.minecraft.util.ChatComponentText import net.minecraft.util.IChatComponent @@ -69,19 +68,19 @@ class PlayerChatModifier { } } - if (SkyHanniMod.feature.chat.playerRankHider) { - for (pattern in patterns) { - string = string.replace(pattern, "§b$1") - } - string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16})'s", "§b$1's") - string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16}) (§.)", "§b$1 $2") - - // TODO remove workaround - if (!DungeonMilestonesDisplay.isMilestoneMessage(input)) { - //all players same color in chat - string = string.replace("§r§7: ", "§r§f: ") - } - } +// if (SkyHanniMod.feature.chat.playerRankHider) { +// for (pattern in patterns) { +// string = string.replace(pattern, "§b$1") +// } +// string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16})'s", "§b$1's") +// string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16}) (§.)", "§b$1 $2") +// +// // TODO remove workaround +// if (!DungeonMilestonesDisplay.isMilestoneMessage(input)) { +// //all players same color in chat +// string = string.replace("§r§7: ", "§r§f: ") +// } +// } if (SkyHanniMod.feature.markedPlayers.highlightInChat) { for (markedPlayer in MarkedPlayerManager.playerNamesToMark) { -- cgit