aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-04-02 15:09:51 -0500
committeringlettronald <inglettronald@gmail.com>2023-04-02 15:09:51 -0500
commita84928b1b9248800cd6f8bb8a831b0a04dd3fc39 (patch)
tree8d9b260f251ac51f3b431b75337b0487377092ec
parent605f17d2afb6487822404fc1c8ee44df87877478 (diff)
downloadDulkirMod-a84928b1b9248800cd6f8bb8a831b0a04dd3fc39.tar.gz
DulkirMod-a84928b1b9248800cd6f8bb8a831b0a04dd3fc39.tar.bz2
DulkirMod-a84928b1b9248800cd6f8bb8a831b0a04dd3fc39.zip
Fix Bridge to work with Hytils
-rw-r--r--src/main/kotlin/dulkirmod/features/chat/Bridge.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/dulkirmod/features/chat/Bridge.kt b/src/main/kotlin/dulkirmod/features/chat/Bridge.kt
index 245fe22..1c4e288 100644
--- a/src/main/kotlin/dulkirmod/features/chat/Bridge.kt
+++ b/src/main/kotlin/dulkirmod/features/chat/Bridge.kt
@@ -8,11 +8,11 @@ import net.minecraftforge.client.event.ClientChatReceivedEvent
object Bridge {
private val guildFormat =
- "^(§2Guild|§3Officer) > (?:\\S+ )?([\\w§]{3,18})(?: §[a-z0-9]\\[[A-Z]+])?§f: ([^>]+) > .+".toRegex()
+ "^(§2Guild|§3Officer|§2G|§3O) > (?:\\S+ )?([\\w§]{3,18})(?: §[a-z0-9]\\[[A-Z]+])?§f: ([^>]+) > .+".toRegex()
private val alternateFormat =
- "^(§2Guild|§3Officer) > (?:\\S+ )?([\\w§]{3,18})(?: §[a-z0-9]\\[[A-Z]+])?§f: ([^:]+): .+".toRegex()
+ "^(§2Guild|§3Officer|§2G|§3O) > (?:\\S+ )?([\\w§]{3,18})(?: §[a-z0-9]\\[[A-Z]+])?§f: ([^:]+): .+".toRegex()
private val otherAltFormat =
- "^(§2Guild|§3Officer) > (?:\\S+ )?([\\w§]{3,18})(?: §[a-z0-9]\\[[A-Z]+])?§f: ([^»]+) » .+".toRegex()
+ "^(§2Guild|§3Officer|§2G|§3O) > (?:\\S+ )?([\\w§]{3,18})(?: §[a-z0-9]\\[[A-Z]+])?§f: ([^»]+) » .+".toRegex()
fun handle(event: ClientChatReceivedEvent) {
val message = event.message.unformattedText