feat: set usage text for Bukkit/legacy Paper commands

dependabot/gradle/org.projectlombok-lombok-1.18.34
William 5 months ago
parent d1b946f14a
commit 4dfabc26f8
No known key found for this signature in database

@ -78,6 +78,7 @@ public class BukkitCommand extends BaseCommand<CommandSender> {
// Setup command properties // Setup command properties
this.setDescription(command.getDescription()); this.setDescription(command.getDescription());
this.setAliases(command.getAliases()); this.setAliases(command.getAliases());
this.setUsage(command.build().getUsageText());
if (permission != null) { if (permission != null) {
this.setPermission(permission.node()); this.setPermission(permission.node());
} }

@ -3,6 +3,6 @@ javaVersion=17
org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true org.gradle.daemon=true
library_version=1.1.6 library_version=1.1.7
library_archive=uniform library_archive=uniform
library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system. library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system.

@ -83,6 +83,7 @@ public class LegacyPaperCommand extends BaseCommand<CommandSender> {
// Setup command properties // Setup command properties
this.setDescription(command.getDescription()); this.setDescription(command.getDescription());
this.setAliases(command.getAliases()); this.setAliases(command.getAliases());
this.setUsage(command.build().getUsageText());
if (permission != null) { if (permission != null) {
this.setPermission(permission.node()); this.setPermission(permission.node());
} }

Loading…
Cancel
Save