Skip to content

Commit

Permalink
2.6.6 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Jul 12, 2020
1 parent 33c428c commit 14a6dc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/com/loohp/interactivechat/Utils/ChatColorUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 14a6dc9

Please sign in to comment.