Fix JSON builder not parsing '§r'

This commit is contained in:
Eric 2020-01-18 17:33:45 +01:00
parent fd5ebd0921
commit f15fdc781f

View File

@ -108,7 +108,7 @@ public class JsonBuilder {
}
}
private static final Pattern PART_PATTERN = Pattern.compile("(([§][a-fA-Fl-oL-OkK0-9])+)([^§]*)");
private static final Pattern PART_PATTERN = Pattern.compile("(([§][a-fA-Fk-oK-OrR0-9])+)([^§]*)");
private Part rootPart;
private ShopChest plugin;
@ -147,7 +147,7 @@ public class JsonBuilder {
matcher.reset();
PartArray array = new PartArray();
PartArray array = new PartArray(new Part());
int lastEndIndex = 0;
while (matcher.find()) {