aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-09 18:08:38 +0200
committernea <nea@nea.moe>2023-06-09 18:08:38 +0200
commit428056ff805839e04443dcff3badd021eb4abe01 (patch)
tree1dfb5b4dc84bc0884dc319be7f8ad4e949decb81 /src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt
parente7a7b04d8cadbc08d12272e8c59bff711be4d463 (diff)
downloadFirmament-428056ff805839e04443dcff3badd021eb4abe01.tar.gz
Firmament-428056ff805839e04443dcff3badd021eb4abe01.tar.bz2
Firmament-428056ff805839e04443dcff3badd021eb4abe01.zip
Add support for other mods using /locraw
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt b/src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt
index c7e950f..57879a1 100644
--- a/src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt
+++ b/src/main/kotlin/moe/nea/firmament/events/ServerChatLineReceivedEvent.kt
@@ -23,9 +23,9 @@ import moe.nea.firmament.util.unformattedString
/**
* This event gets published whenever the client receives a chat message from the server.
- */
+ * This event is cancellable, but should not get cancelled. Use [ClientChatLineReceivedEvent] for that instead. */
data class ServerChatLineReceivedEvent(val text: Text) : FirmamentEvent.Cancellable() {
- companion object : FirmamentEventBus<ServerChatLineReceivedEvent>()
-
val unformattedString = text.unformattedString
+
+ companion object : FirmamentEventBus<ServerChatLineReceivedEvent>()
}