diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt b/src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt deleted file mode 100644 index a352c27..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt +++ /dev/null @@ -1,15 +0,0 @@ -package moe.nea.ledger.events - -import moe.nea.ledger.unformattedString -import net.minecraftforge.client.event.ClientChatReceivedEvent -import net.minecraftforge.fml.common.eventhandler.Event -import java.time.Instant - -data class ChatReceived( - val message: String, - val timestamp: Instant = Instant.now() -) : Event() { - constructor(event: ClientChatReceivedEvent) : this( - event.message.unformattedText.unformattedString().trimEnd() - ) -}
\ No newline at end of file |