/** * Color the message by converting color codes like '&a' ot chat colors. * * <p>Uses {@link Str#color(String)} * * <p> * * <p><b>By default messages get colored already.</b> We've made it that way because in 99% of the * cases you would want colored messages. You can use {@link #removeClr()} to change the color * back to color codes or {@link #stripClr()} to completely get rid of colors. * * @return This msg instance. */ public Msg clr() { message = Str.color(message); return this; }
/** * Construct a new message with the specified string message. * * <p><b>This is not a message key!</b> * * <p> * * <p>By default it will color messages. You can always use {@link #removeClr()} or {@link * #stripClr()} to remove/strip the color. * * <p> * * <p>See {@link Msg#fromString(String, Param...)} for more details. * * @param message A regular string with a custom message. Just like configurable message this may * contain custom JSON syntax and such. */ public Msg(String message) { this.original = message; this.message = Str.color(message); }