public enum ChatColor { AQUA, BLACK, BLUE, BOLD, DARK_AQUA, DARK_BLUE, DARK_GRAY, DARK_GREEN, DARK_PURPLE, DARK_RED, GOLD, GRAY, GREEN, ITALIC, LIGHT_PURPLE, MAGIC, RED, RESET, STRIKETHROUGH, UNDERLINE, WHITE, YELLOW } ChatColor ChatColor; String SectionSign = "\u00A7"; switch (ChatColor) { case AQUA: return SectionSign + "b"; case BLACK: return SectionSign + "0"; case BLUE: return SectionSign + "1"; case BOLD: return SectionSign + "l"; case DARK_AQUA: return SectionSign + "3"; case DARK_BLUE: return SectionSign + "1"; case DARK_GRAY: return SectionSign + "8"; case DARK_GREEN: return SectionSign + "2"; case DARK_PURPLE: return SectionSign + "5"; case DARK_RED: return SectionSign + "4"; case GOLD: return SectionSign + "6"; case GRAY: return SectionSign + "7"; case GREEN: return SectionSign + "a"; case ITALIC: return SectionSign + "o"; case LIGHT_PURPLE: return SectionSign + "d"; case MAGIC: return SectionSign + "k"; case RED: return SectionSign + "c"; case RESET: return SectionSign + "r"; case STRIKETHROUGH: return SectionSign + "m"; case WHITE: return SectionSign + "f"; case UNDERLINE: return SectionSign + "n"; case YELLOW: return SectionSign + "e"; } }