mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Add usage to command help list
This commit is contained in:
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))
|
||||
|
||||
Reference in new issue
Block a user