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.