@@ -0,0 +1,914 @@
+package in.twizmwaz.openuhc.util;%0A%0Aimport org.bukkit.ChatColor;%0A%0Apublic class Colors %7B%0A%0A  /**%0A   * Removes any unnecessary color codes from a string.%0A   * @param str The string to condense%0A   * @return The condensed string%0A   */%0A  public static String condense(String str) %7B%0A    StringBuilder result = new StringBuilder();%0A%0A    boolean nextColor = false;%0A    ChatColor color = null;%0A    for (char c : str.toCharArray()) %7B%0A      if (c == '%C2%A7') %7B%0A        nextColor = true;%0A      %7D else if (nextColor) %7B%0A        ChatColor currentColor = ChatColor.getByChar(c);%0A        //Append this color to the condensed string if it actually changes the color and appearance of the original%0A        if (currentColor != null && !currentColor.equals(color)) %7B%0A          color = currentColor;%0A          result.append(currentColor);%0A        %7D%0A      %7D else %7B%0A        result.append(c);%0A      %7D%0A    %7D%0A%0A    return result.toString();%0A  %7D%0A%0A%7D%0A

Add color condense method