From d73539f7557a48c8a4a30ce3fa0cd11f89228617 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sat, 11 Aug 2018 14:07:26 +0200 Subject: [PATCH] Fixed default help not sending description reference if no translation was found --- .../bentobox/bentobox/api/commands/DefaultHelpCommand.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/DefaultHelpCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/DefaultHelpCommand.java index 5a8601f16..8324f8250 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/DefaultHelpCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/DefaultHelpCommand.java @@ -31,7 +31,7 @@ public class DefaultHelpCommand extends CompositeCommand { @Override public void setup() { // Set the usage to what the parent's command is - setParameters(parent.getParameters()); + setParametersHelp(parent.getParameters()); setDescription(parent.getDescription()); inheritPermission(); } @@ -58,12 +58,10 @@ public class DefaultHelpCommand extends CompositeCommand { } if (depth < MAX_DEPTH) { if (!parent.getLabel().equals(HELP)) { - - // Get elements String usage = parent.getUsage(); String params = user.getTranslationOrNothing(getParameters()); - String desc = user.getTranslationOrNothing(getDescription()); + String desc = user.getTranslation(getDescription()); if (showPrettyHelp(user, usage, params, desc)) { // No more to show