Skip to content

Commit

Permalink
fix: make discord to mc send correct message, not entire pluginMessag…
Browse files Browse the repository at this point in the history
…e component
  • Loading branch information
Boy0000 committed Feb 9, 2024
1 parent 14a358e commit 6e52874
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DiscordListener {
val message = if (chatty.config.chat.formatURLs) handleUrlReplacements(minecraftMessage.toComponent(), null).toComponentDSV() else minecraftMessage
val minecraftMessage = ComponentDSV.textOfChildren(senderName, channelId, message, simpleMessage)
chatty.plugin.server.sendPluginMessage(chatty.plugin, chattyProxyChannel, gson.serialize(minecraftMessage).toByteArray())
setMinecraftMessage(minecraftMessage)
setMinecraftMessage(message)
}

private fun ComponentDSV.toComponent() = mm.serialize(this).miniMsg()
Expand Down

0 comments on commit 6e52874

Please sign in to comment.