Skip to content

Commit

Permalink
fix some issues with the migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Oct 25, 2024
1 parent c614b0f commit 41aeb9f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private void migrateConfig() {
}

Map<String, Map<String, Object>> formatters = new HashMap<>();
config.getValues(false, "formatters")
config.getNormalizedValues(false, "formatters")
.forEach(
(key, value) ->
MapUtils.castOptionalStringObjectMap(value).ifPresent(map -> formatters.put(key[0], map))
Expand Down Expand Up @@ -169,10 +169,10 @@ private void migrateConfig() {
if (templateManager.getTemplate("topper-sign").isEmpty()) {
List<String> newSignLines = new ArrayList<>(signLines);
newSignLines.replaceAll(s -> s
.replace("uuid", "%topper_{holder};top_key;{index}%")
.replace("name", "%topper_{holder};top_name;{index}%")
.replace("value", "%topper_{holder};top_value;{index};{format}%")
.replace("value_raw", "%topper_{holder};top_value_raw;{index}%")
.replace("{uuid}", "%topper_{holder};top_key;{index}%")
.replace("{name}", "%topper_{holder};top_name;{index}%")
.replace("{value}", "%topper_{holder};top_value;{index};{format}%")
.replace("{value_raw}", "%topper_{holder};top_value_raw;{index}%")
);
templateManager.saveTemplate("topper-sign", newSignLines);
}
Expand Down

0 comments on commit 41aeb9f

Please sign in to comment.