mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +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
|
Locales.escapeText(command.getDescription().length() > 50
|
||||||
? command.getDescription().substring(0, 49).trim() + "…"
|
? command.getDescription().substring(0, 49).trim() + "…"
|
||||||
: command.getDescription()),
|
: command.getDescription()),
|
||||||
Locales.escapeText(plugin.getLocales().wrapText(command.getDescription(), 40)))
|
Locales.escapeText(plugin.getLocales()
|
||||||
|
.wrapText(command.getUsage() + "\n" + command.getDescription(), 40)))
|
||||||
.orElse(command.getName()))
|
.orElse(command.getName()))
|
||||||
.collect(Collectors.toList()),
|
.collect(Collectors.toList()),
|
||||||
plugin.getLocales().getBaseList(Math.min(plugin.getSettings().getListItemsPerPage(), 6))
|
plugin.getLocales().getBaseList(Math.min(plugin.getSettings().getListItemsPerPage(), 6))
|
||||||
|
|||||||
Reference in new issue
Block a user