java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.utils.ChatUtils

public class ChatUtils extends Object
  • Field Details

    • HEX_COLOR_SUPPORT

      public static boolean HEX_COLOR_SUPPORT
  • Method Details

    • getColorByChar

      public static String getColorByChar(char character)
    • parseColors

      public static String parseColors(@NotNull @NotNull String text)
    • stripColors

      public static String stripColors(String text)
    • getLastColorCode

      public static String getLastColorCode(String msg)
    • toBaseComponents

      public static net.md_5.bungee.api.chat.BaseComponent[] toBaseComponents(@Nullable @Nullable org.bukkit.command.CommandSender receiver, @NotNull @NotNull String text)
    • getLastColors

      @NotNull public static @NotNull String getLastColors(@NotNull @NotNull String input)
      Loops through the input and returns the last color codes
      Parameters:
      input - the input
      Returns:
      the last color codes
    • applyLastColorToFollowingLines

      public static void applyLastColorToFollowingLines(@NotNull @NotNull List<String> lines)