From e430e399dfeb1d79cfaa2e713185ef9546b17a05 Mon Sep 17 00:00:00 2001 From: mfnalex <1122571+mfnalex@users.noreply.github.com> Date: Tue, 16 Jul 2019 22:28:31 +0200 Subject: [PATCH] 6.4.2 possible fix for "illegal group reference" --- .../JeffChestSort/JeffChestSortOrganizer.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java b/src/main/java/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java index 3be25f5..5b353ab 100644 --- a/src/main/java/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java +++ b/src/main/java/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java @@ -319,14 +319,14 @@ public class JeffChestSortOrganizer { // Generate the strings that finally are used for sorting. // They are generated according to the config.yml's sorting-method option String sortableString = plugin.sortingMethod.replaceAll(",", "|"); - sortableString = sortableString.replaceAll("\\{itemsFirst\\}", String.valueOf(itemsFirst)); - sortableString = sortableString.replaceAll("\\{blocksFirst\\}", String.valueOf(blocksFirst)); - sortableString = sortableString.replaceAll("\\{name\\}", typeName); - sortableString = sortableString.replaceAll("\\{color\\}", color); - sortableString = sortableString.replaceAll("\\{category\\}", categorySticky); - sortableString = sortableString.replaceAll("\\{keepCategoryOrder\\}", lineNumber); - sortableString = sortableString.replaceAll("\\{customName\\}", customName); - sortableString = sortableString.replaceAll("\\{lore\\}", lore); + sortableString = sortableString.replace("\\{itemsFirst\\}", String.valueOf(itemsFirst)); + sortableString = sortableString.replace("\\{blocksFirst\\}", String.valueOf(blocksFirst)); + sortableString = sortableString.replace("\\{name\\}", typeName); + sortableString = sortableString.replace("\\{color\\}", color); + sortableString = sortableString.replace("\\{category\\}", categorySticky); + sortableString = sortableString.replace("\\{keepCategoryOrder\\}", lineNumber); + sortableString = sortableString.replace("\\{customName\\}", customName); + sortableString = sortableString.replace("\\{lore\\}", lore); return sortableString;