Class Chat

java.lang.Object
fr.andross.banitem.utils.Chat

public final class Chat extends Object
A chat utility class
Version:
3.2
Author:
Andross
  • Constructor Details

    • Chat

      public Chat()
  • Method Details

    • color

      @NotNull public static String color(@Nullable String text)
      Translate the color codes to make the string colored
      Parameters:
      text - the text to translate
      Returns:
      a colored string
    • uncolor

      @NotNull public static String uncolor(@NotNull String text)
      Uncolor a string totally
      Parameters:
      text - colored string
      Returns:
      uncolored string
    • revertColor

      @Nullable @Contract("!null -> !null; null -> null") public static String revertColor(@Nullable String text)
      Convert all color codes back
      Parameters:
      text - text
      Returns:
      the uncolored text, with color codes