diff --git a/src/com/loohp/interactivechat/Utils/ChatColorUtils.java b/src/com/loohp/interactivechat/Utils/ChatColorUtils.java index c9b6e332..97c70454 100644 --- a/src/com/loohp/interactivechat/Utils/ChatColorUtils.java +++ b/src/com/loohp/interactivechat/Utils/ChatColorUtils.java @@ -37,6 +37,12 @@ public class ChatColorUtils { colors.add('d'); colors.add('e'); colors.add('f'); + colors.add('k'); + colors.add('l'); + colors.add('m'); + colors.add('n'); + colors.add('o'); + colors.add('r'); } public static String filterIllegalColorCodes(String string) { @@ -51,6 +57,7 @@ public static String getLastColors(String input) { String color = String.valueOf(input.charAt(i - 1)) + String.valueOf(input.charAt(i)); if ((i - 13) >= 0 && input.charAt(i - 12) == 'x' && input.charAt(i - 13) == '§') { color = input.substring(i - 13, i + 1); + i -= 13; } if (isLegal(color)) { result = color + result; @@ -78,6 +85,7 @@ public static String getFirstColors(String input) { color = String.valueOf(input.charAt(i - 1)) + String.valueOf(input.charAt(i)); if (input.charAt(i) == 'x') { color = input.substring(i - 1, i + 13); + i += 13; } if (isLegal(color)) { if (!found) { diff --git a/src/plugin.yml b/src/plugin.yml index 1b37af44..6f81a932 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: InteractiveChat author: loohp -version: 2.6.5 +version: 2.6.6 main: com.loohp.interactivechat.InteractiveChat api-version: 1.13 description: Make the chat interactive