Skip to content

[Bug] CarbonPrivateChatEvent doesn't fire #687

@xanderforrest

Description

@xanderforrest

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:

  1. Install Carbon
  2. Create sidemod, pull in CarbonChat API
  3. Register CarbonPrivateChatEvent event
  4. Load sidemod on Server A
  5. Send private message on Server A to any player on any server, and the event fires
  6. 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:

  1. Server Type: Fabric
  2. Server Software: Fabric-API, fabric-api-0.107.0+1.21.1.jar
  3. MC Version: 1.21.1
  4. Carbon Version: Beta 32 3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmed bugreported bug, not confirmed yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions