Interface CarbonPrivateChatEvent

All Superinterfaces:
Cancellable, CarbonEvent

Called whenever a player privately messages another player.
Since:
3.0.0
  • Method Details

    • message

      void message(Component message)
      Sets the message that will be sent.
      Parameters:
      message - the new message
      Throws:
      NullPointerException - if message is null
      Since:
      3.0.0
    • message

      Component message()
      The message that will be sent.
      Returns:
      the message
      Since:
      3.0.0
    • sender

      CarbonPlayer sender()
      The message sender.
      Returns:
      the sender of the message
      Since:
      3.0.0
    • recipient

      CarbonPlayer recipient()
      The message recipient.
      Returns:
      the recipient of the message
      Since:
      3.0.0