Add usage to command help list

This commit is contained in:
William committed 2023-03-24 01:44:36 +00:00
1 parent c36cec3e92
commit 33fdab44f2
1 file changed
+2 -1
@@ -99,7 +99,8 @@ public class HuskHomesCommand extends Command implements TabProvider {
Locales.escapeText(command.getDescription().length() > 50
? command.getDescription().substring(0, 49).trim() + "…"
: command.getDescription()),
Locales.escapeText(plugin.getLocales().wrapText(command.getDescription(), 40)))
Locales.escapeText(plugin.getLocales()
.wrapText(command.getUsage() + "\n" + command.getDescription(), 40)))
.orElse(command.getName()))
.collect(Collectors.toList()),
plugin.getLocales().getBaseList(Math.min(plugin.getSettings().getListItemsPerPage(), 6))