diff options
author | ingle <inglettronald@gmail.com> | 2022-09-24 14:57:07 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-09-24 14:57:07 -0500 |
commit | cce0c0c05e1f73902e474d9a63f6b1f302cd5176 (patch) | |
tree | 2a46288933f3a8c2a181d97e4ca157e1d04ece21 /src/main/kotlin/dulkirmod/events/ChatEvent.kt | |
parent | 442926d9bcea191ac4f852d3d0770288c2a5bca7 (diff) | |
download | DulkirMod-cce0c0c05e1f73902e474d9a63f6b1f302cd5176.tar.gz DulkirMod-cce0c0c05e1f73902e474d9a63f6b1f302cd5176.tar.bz2 DulkirMod-cce0c0c05e1f73902e474d9a63f6b1f302cd5176.zip |
Imported customAnimations courtesy of Aton.
Also add Nametag Cleaner.
Diffstat (limited to 'src/main/kotlin/dulkirmod/events/ChatEvent.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/events/ChatEvent.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/kotlin/dulkirmod/events/ChatEvent.kt b/src/main/kotlin/dulkirmod/events/ChatEvent.kt index 03f8dd8..de180fa 100644 --- a/src/main/kotlin/dulkirmod/events/ChatEvent.kt +++ b/src/main/kotlin/dulkirmod/events/ChatEvent.kt @@ -1,6 +1,7 @@ package dulkirmod.events import dulkirmod.DulkirMod +import dulkirmod.utils.Utils.stripColorCodes import net.minecraftforge.client.event.ClientChatReceivedEvent import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -17,7 +18,4 @@ class ChatEvent { DulkirMod.mc.thePlayer.sendChatMessage("/pc " + DulkirMod.config.customMessage) } } - private fun stripColorCodes(string: String): String { - return string.replace("ยง.".toRegex(), "") - } }
\ No newline at end of file |