Skip to content

Commit

Permalink
Fixed additional player placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
0ft3n committed Mar 16, 2024
1 parent 17db6db commit 7ef928c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class PlaceholderParser {
val prefix = "%${additionalPlayer.identifier}_"
processed = found.fold(processed) { acc, placeholder ->
if (placeholder.startsWith(prefix)) {
val newPlaceholder = "%${StringUtils.removePrefix(prefix, placeholder)}"
val newPlaceholder = "%${StringUtils.removePrefix(placeholder, prefix)}"
val translation = translatePlacholders(
newPlaceholder,
context.copyWithPlayer(additionalPlayer.player),
Expand Down

0 comments on commit 7ef928c

Please sign in to comment.