Skip to content

Commit

Permalink
Add missing translation for argument pipe color (EssentialsX#4480)
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy authored Aug 26, 2021
1 parent c746a1c commit df88a89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void addUsageString(final String usage, final String description) {
final Matcher matcher = ARGUMENT_PATTERN.matcher(usage);
while (matcher.find()) {
final String color = matcher.group(3).equals("<") ? tl("commandArgumentRequired") : tl("commandArgumentOptional");
matcher.appendReplacement(buffer, "$1" + color + matcher.group(2).replace("|", ChatColor.RED + "|" + color) + ChatColor.RESET);
matcher.appendReplacement(buffer, "$1" + color + matcher.group(2).replace("|", tl("commandArgumentOr") + "|" + color) + ChatColor.RESET);
}
matcher.appendTail(buffer);
usageStrings.put(buffer.toString(), description);
Expand Down
1 change: 1 addition & 0 deletions Essentials/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ clearinventoryCommandUsage3Description=Clears all (or the specified amount) of t
clearinventoryconfirmtoggleCommandDescription=Toggles whether you are prompted to confirm inventory clears.
clearinventoryconfirmtoggleCommandUsage=/<command>
commandArgumentOptional=\u00a77
commandArgumentOr=\u00a7c
commandArgumentRequired=\u00a7e
commandCooldown=\u00a7cYou cannot type that command for {0}.
commandDisabled=\u00a7cThe command\u00a76 {0}\u00a7c is disabled.
Expand Down

0 comments on commit df88a89

Please # to comment.