Class Chat

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

public abstract class Chat extends Object
A chat utility class.
Version:
3.2
Author:
Andross
  • Method Details

    • color

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

      @NotNull public static @NotNull String stripColors(@NotNull @NotNull String text)
      Remove the color codes on a string.
      Parameters:
      text - colored string
      Returns:
      uncolored string
    • revertColor

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