Utils.java 508 B

12345678910111213141516171819
  1. package de.Linus122.TimeIsMoney;
  2. import org.bukkit.ChatColor;
  3. public class Utils {
  4. public Utils() {
  5. throw new RuntimeException("Utils class should not be instantiated!");
  6. }
  7. /**
  8. * Utility method which converts &<color> bukkit colors to real bukkit colors which correct symbol
  9. * @param s string to convert
  10. * @return converted string
  11. */
  12. public static String CC(String s) {
  13. return ChatColor.translateAlternateColorCodes('&', s);
  14. }
  15. }