SHARE
TWEET

ChatColor Utility

a guest Apr 20th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import org.bukkit.ChatColor;
  2.  
  3. public class C {
  4.  
  5.     public static String c(String s) {
  6.         return ChatColor.translateAlternateColorCodes('&', s);
  7.     }
  8.  
  9.     public static String sc(String s) {
  10.         return ChatColor.stripColor(s);
  11.     }
  12.  
  13.     public static final ChatColor AQUA = ChatColor.AQUA;
  14.     public static final ChatColor BLACK = ChatColor.BLACK;
  15.     public static final ChatColor BLUE = ChatColor.BLUE;
  16.     public static final ChatColor BOLD = ChatColor.BOLD;
  17.     public static final ChatColor DARK_AQUA = ChatColor.DARK_AQUA;
  18.     public static final ChatColor DARK_BLUE = ChatColor.DARK_BLUE;
  19.     public static final ChatColor DARK_GRAY = ChatColor.DARK_GRAY;
  20.     public static final ChatColor DARK_GREEN = ChatColor.DARK_GREEN;
  21.     public static final ChatColor DARK_PURPLE = ChatColor.DARK_PURPLE;
  22.     public static final ChatColor DARK_RED = ChatColor.DARK_RED;
  23.     public static final ChatColor GOLD = ChatColor.GOLD;
  24.     public static final ChatColor GRAY = ChatColor.GRAY;
  25.     public static final ChatColor GREEN = ChatColor.GREEN;
  26.     public static final ChatColor ITALIC = ChatColor.ITALIC;
  27.     public static final ChatColor LIGHT_PURPLE = ChatColor.LIGHT_PURPLE;
  28.     public static final ChatColor MAGIC = ChatColor.MAGIC;
  29.     public static final ChatColor RED = ChatColor.RED;
  30.     public static final ChatColor RESET = ChatColor.RESET;
  31.     public static final ChatColor STRIKETHROUGH = ChatColor.STRIKETHROUGH;
  32.     public static final ChatColor UNDERLINE = ChatColor.UNDERLINE;
  33.     public static final ChatColor WHITE = ChatColor.WHITE;
  34.     public static final ChatColor YELLOW = ChatColor.YELLOW;
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top