From df88a89c14eda8d9ed4f3551db8aa6fa30e302a9 Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Thu, 26 Aug 2021 13:09:16 -0700 Subject: [PATCH] Add missing translation for argument pipe color (#4480) --- .../com/earth2me/essentials/commands/EssentialsCommand.java | 2 +- Essentials/src/main/resources/messages.properties | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/EssentialsCommand.java b/Essentials/src/main/java/com/earth2me/essentials/commands/EssentialsCommand.java index cd849b2d3..db19816f2 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/EssentialsCommand.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/EssentialsCommand.java @@ -69,7 +69,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand { 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); diff --git a/Essentials/src/main/resources/messages.properties b/Essentials/src/main/resources/messages.properties index 1b0498826..16e282a8b 100644 --- a/Essentials/src/main/resources/messages.properties +++ b/Essentials/src/main/resources/messages.properties @@ -143,6 +143,7 @@ clearinventoryCommandUsage3Description=Clears all (or the specified amount) of t clearinventoryconfirmtoggleCommandDescription=Toggles whether you are prompted to confirm inventory clears. clearinventoryconfirmtoggleCommandUsage=/ commandArgumentOptional=\u00a77 +commandArgumentOr=\u00a7c commandArgumentRequired=\u00a7e commandCooldown=\u00a7cYou cannot type that command for {0}. commandDisabled=\u00a7cThe command\u00a76 {0}\u00a7c is disabled.