Class ChatUtil

java.lang.Object
com.zenith.util.ChatUtil

public class ChatUtil extends Object
  • Constructor Details

    • ChatUtil

      public ChatUtil()
  • Method Details

    • sanitizeChatMessage

      public static String sanitizeChatMessage(String input)
    • isAllowedChatCharacter

      public static boolean isAllowedChatCharacter(char c0)
    • constrainChatMessageSize

      public static String constrainChatMessageSize(String message, boolean end)
      Parameters:
      end - if true, characters from the end of the message will be removed (if needed). If false, characters from the start will be removed.
    • isValidPlayerName

      public static boolean isValidPlayerName(String playerName)
    • isWhisperCommand

      @Deprecated public static boolean isWhisperCommand(String command)
      Deprecated.
    • getWhisperChatPacket

      public static ServerboundChatPacket getWhisperChatPacket(String playerName, String message)