diff --git a/net/nemez/chatapi/ChatAPI.java b/net/nemez/chatapi/ChatAPI.java index a5af0d0..3b5a992 100644 --- a/net/nemez/chatapi/ChatAPI.java +++ b/net/nemez/chatapi/ChatAPI.java @@ -61,15 +61,15 @@ public class ChatAPI { */ public static String colorify(CommandSender sender, String message) { if (sender == null || sender.hasPermission(PERMISSION_CHAT_COLOR)) { - message = message.replaceAll("&([0-9a-fA-FrR])", "§$1"); + message = message.replaceAll("&([0-9a-fA-FrR])", "§$1"); } if (sender == null || sender.hasPermission(PERMISSION_CHAT_FORMAT)) { - message = message.replaceAll("&([l-oL-OrR])", "§$1"); + message = message.replaceAll("&([l-oL-OrR])", "§$1"); } if (sender == null || sender.hasPermission(PERMISSION_CHAT_MAGIC)) { - message = message.replaceAll("&([kKrR])", "§$1"); + message = message.replaceAll("&([kKrR])", "§$1"); } - return message.replaceAll("&§", "&"); + return message; } /**