mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-01 14:38:47 +00:00
Merge pull request #33 from Grabsky/feat/description-placeholder-in-command-usage
Parse `%command_description%` placeholder in `Error.Command.Usage`
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user