diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-12 14:13:51 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-12 14:13:51 +0200 |
commit | 5887abd5191678954e152d1b3b52fab990ca5ac0 (patch) | |
tree | 07be41ea7ac0b193f9f9cbf0b87a8d7de0135ccc /src/main/java/at/hannibal2 | |
parent | e8025b1206fc9bc432d86753ffdf4525c5c04f38 (diff) | |
download | skyhanni-5887abd5191678954e152d1b3b52fab990ca5ac0.tar.gz skyhanni-5887abd5191678954e152d1b3b52fab990ca5ac0.tar.bz2 skyhanni-5887abd5191678954e152d1b3b52fab990ca5ac0.zip |
wording
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/PlayerChatSymbols.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | 2 |
2 files changed, 3 insertions, 3 deletions
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] |