Here you can find the source of color(String msg)
Parameter | Description |
---|---|
msg | non-colored message |
public static String color(String msg)
//package com.java2s; //License from project: Open Source License public class Main { /**/*w w w.j av a 2s.c om*/ * Coloring message * @param msg non-colored message */ public static String color(String msg) { return msg.replaceAll("&([0-9a-fA-Fk-oK-OrR])", "\u00A7$1"); } }