Parse %command_description% placeholder in Error.Command.Usage

This commit is contained in:
Michał Czopek committed 2025-01-15 17:42:56 +01:00
1 parent 28a703ab1f
commit fb10e0b0ab
1 file changed
+2 -1
@@ -104,7 +104,8 @@ public class DirectNode extends CommandNode implements DirectExecutor {
if (parsedArguments.getArgumentMap().size() < this.requiredArguments) {
return context.sendFailure(CoreLang.ERROR_COMMAND_USAGE.getMessage(this.plugin)
.replace(Placeholders.COMMAND_LABEL, this.getNameWithParents())
.replace(Placeholders.COMMAND_USAGE, this.getUsage()));
.replace(Placeholders.COMMAND_USAGE, this.getUsage())
.replace(Placeholders.COMMAND_DESCRIPTION, this.getDescription()));
}
if (!this.flags.isEmpty() && index < args.length) {