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;