From 33fdab44f2995118f8912727640069f45f1a29c4 Mon Sep 17 00:00:00 2001 From: William Date: Fri, 24 Mar 2023 01:44:36 +0000 Subject: [PATCH] Add usage to command help list --- .../net/william278/huskhomes/command/HuskHomesCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java b/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java index 667e867b..2121c45d 100644 --- a/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java +++ b/common/src/main/java/net/william278/huskhomes/command/HuskHomesCommand.java @@ -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))