6.4.2 possible fix for "illegal group reference"

This commit is contained in:
mfnalex 2019-07-16 22:28:31 +02:00
parent 482939fd5e
commit e430e399df

View File

@ -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;