Interface PlayerChatEvent.Formatter

Enclosing class:
PlayerChatEvent

public static interface PlayerChatEvent.Formatter
A functional interface used to format player chat messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    format(PlayerRef playerRef, String message)
    Called to format the players chat message.
  • Method Details

    • format

      @Nonnull Message format(@Nonnull PlayerRef playerRef, @Nonnull String message)
      Called to format the players chat message.
      Parameters:
      playerRef - The PlayerRef component of the player.
      message - The contents of the message that was sent by the player.
      Returns:
      The formatted message.