diff options
author | inglettronald <inglettronald@gmail.com> | 2023-06-16 11:56:00 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-06-16 11:56:00 -0500 |
commit | b56cf5d2a1aa1864b43acae69aedde676afafd57 (patch) | |
tree | bac77a8cc0bd639b0f4e798bab53e1ad6c79b49b /src/main/kotlin/com/dulkirfabric/util/TextUtils.kt | |
parent | 2b93c22070564ed3ad31cd1862c65185b79c1a78 (diff) | |
download | DulkirMod-Fabric-b56cf5d2a1aa1864b43acae69aedde676afafd57.tar.gz DulkirMod-Fabric-b56cf5d2a1aa1864b43acae69aedde676afafd57.tar.bz2 DulkirMod-Fabric-b56cf5d2a1aa1864b43acae69aedde676afafd57.zip |
wip
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util/TextUtils.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/util/TextUtils.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt b/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt index 6f904ac..c239ba0 100644 --- a/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt +++ b/src/main/kotlin/com/dulkirfabric/util/TextUtils.kt @@ -28,4 +28,8 @@ object TextUtils { fun sendCommand(command: String) { mc.player?.networkHandler?.sendChatCommand(command) } + + fun stripColorCodes(string: String): String { + return string.replace("ยง.".toRegex(), "") + } }
\ No newline at end of file |