From 5887abd5191678954e152d1b3b52fab990ca5ac0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:13:51 +0200 Subject: wording --- .../java/at/hannibal2/skyhanni/features/misc/PlayerChatSymbols.kt | 4 ++-- src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PlayerChatSymbols.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PlayerChatSymbols.kt index 904b43fa2..b826c5077 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/PlayerChatSymbols.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PlayerChatSymbols.kt @@ -6,7 +6,7 @@ import at.hannibal2.skyhanni.features.misc.compacttablist.TabStringType import at.hannibal2.skyhanni.mixins.transformers.AccessorChatComponentText import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.StringUtils -import at.hannibal2.skyhanni.utils.StringUtils.getPlayerName +import at.hannibal2.skyhanni.utils.StringUtils.getPlayerNameFromChatMessage import at.hannibal2.skyhanni.utils.StringUtils.removeResets import at.hannibal2.skyhanni.utils.TabListData import net.minecraft.client.Minecraft @@ -24,7 +24,7 @@ class PlayerChatSymbols { if (!LorenzUtils.inSkyBlock) return if (!config.enabled) return - val username = event.message.getPlayerName() ?: return + val username = event.message.getPlayerNameFromChatMessage() ?: return updateSymbolFromTabList(username) diff --git a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt index 0622ff568..18e097ae3 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt @@ -200,7 +200,7 @@ object StringUtils { return chatComponent } - fun String.getPlayerName(): String? { + fun String.getPlayerNameFromChatMessage(): String? { if (!playerChatPattern.matcher(this).matches()) return null var username = this.removeColor().split(":")[0] -- cgit