Skip to content

Commit

Permalink
Added x to unParse
Browse files Browse the repository at this point in the history
  • Loading branch information
divios committed Jan 20, 2022
1 parent a4d76dd commit 53a2618
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public String parse(String s) {
public String unparse(String s) {
char[] array = s.toCharArray();
for (int i = 0; i < array.length - 1; i++) {
if (array[i] == ChatColor.COLOR_CHAR && "0123456789AaBbCcDdEeFfKkLlMmNnOoRr".indexOf(array[i + 1]) != -1) {
if (array[i] == ChatColor.COLOR_CHAR && "x0123456789AaBbCcDdEeFfKkLlMmNnOoRr".indexOf(array[i + 1]) != -1) {
array[i] = '&';
array[i + 1] = Character.toLowerCase(array[i + 1]);
}
Expand Down

0 comments on commit 53a2618

Please sign in to comment.