-
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
unconfirmed bugreported bug, not confirmed yetreported bug, not confirmed yet
Description
Bug Description:
CarbonPrivateChatEvent only fires on the server the sender is on
What is not working as it should?
CarbonPrivateChatEvent should fire regardless of the senders server, like CarbonChatEvent
Steps to reproduce:
- Install Carbon
- Create sidemod, pull in CarbonChat API
- Register CarbonPrivateChatEvent event
- Load sidemod on Server A
- Send private message on Server A to any player on any server, and the event fires
- Send private message from Server B, and the event won't fire on Server A
CarbonChatEvent fires regardless of the senders server.
CarbonChatProvider.carbonChat().eventHandler().subscribe(CarbonPrivateChatEvent::class.java) {
val senderIgn = it.sender().username()
val receiverIgn = it.recipient().username()
val content = PlainTextComponentSerializer.plainText().serialize(it.message())
LOGGER.info("DM -> ${senderIgn} -> ${receiverIgn}: ${content}")
Webhooks.sendMessageWebhook(CONFIG.dmWebhook, senderIgn, content, "-> ${receiverIgn}")
}
System Details:
- Server Type: Fabric
- Server Software: Fabric-API, fabric-api-0.107.0+1.21.1.jar
- MC Version: 1.21.1
- Carbon Version: Beta 32 3.0.0
Metadata
Metadata
Assignees
Labels
unconfirmed bugreported bug, not confirmed yetreported bug, not confirmed yet