diff options
author | inglettronald <inglettronald@gmail.com> | 2023-06-21 22:10:31 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-06-21 22:10:31 -0500 |
commit | 5dd4c58fea97d5df8f18c099701b7034ae8939f5 (patch) | |
tree | 3ef3b740b4942a5786b428b402b68edb672aef0f /src/main/kotlin/com/dulkirfabric/util | |
parent | b56cf5d2a1aa1864b43acae69aedde676afafd57 (diff) | |
download | DulkirMod-Fabric-5dd4c58fea97d5df8f18c099701b7034ae8939f5.tar.gz DulkirMod-Fabric-5dd4c58fea97d5df8f18c099701b7034ae8939f5.tar.bz2 DulkirMod-Fabric-5dd4c58fea97d5df8f18c099701b7034ae8939f5.zip |
more work on Chat parsing and Sound handling
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/util/TextUtils.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt b/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt index c239ba0..c3baa9e 100644 --- a/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt +++ b/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt @@ -17,6 +17,9 @@ object TextUtils { info("§9Toggled $message §8[$stateText§8]§r") } + val Text.unformattedString + get() = string.replace("§.".toRegex(), "") + fun sendPartyChatMessage(message: String) { this.sendCommand("/pc $message") } |