Fixed default description and parametersHelp (again)

Commit efb8cb27a9 broke it
This commit is contained in:
Florian CUNY 2018-08-12 11:38:09 +02:00
parent 5b7502d83f
commit 2fee163818

View File

@ -212,8 +212,8 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
p = p.getParent();
index++;
}
setDescription(reference.toString() + ".description");
setParametersHelp(reference.toString() + ".parameters");
setDescription("commands." + reference.toString() + ".description");
setParametersHelp("commands." + reference.toString() + ".parameters");
setup();
// If this command does not define its own help class, then use the default help command
if (!getSubCommand("help").isPresent() && !label.equals("help")) {