Class ChatHandler

java.lang.Object
software.bluelib.event.ChatHandler

public class ChatHandler extends Object
A public class responsible for handling server chat events and formatting chat messages using Markdown.

This class listens for chat messages on the server and applies Markdown formatting to the message content using the MarkdownParser. The formatted message is then set as the new message to be broadcasted.

Since:
1.1.0
  • Constructor Details

    • ChatHandler

      public ChatHandler()
  • Method Details

    • onServerChat

      public static void onServerChat(net.neoforged.neoforge.event.ServerChatEvent pEvent)
      A public static method that handles server chat events and formats the message using Markdown.

      This method listens to the ServerChatEvent and applies Markdown formatting to the message using the MarkdownParser. The formatted message is then set as the new message.

      Parameters:
      pEvent - ServerChatEvent - The event containing the original chat message to format.
      Since:
      1.1.0