Add a locale to allow users to customise the display of the command list

Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
BuildTools committed 2021-07-15 00:11:20 +03:00
1 parent 7f7081a434
commit c73f6ede90
3 files changed
+4 -2

No files matched your search

@@ -45,9 +45,9 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter {
if (command.equals("huskhomes") && HuskHomes.getSettings().hideHuskHomesCommandFromHelpMenu()) {
continue;
}
String description = (String) plugin.getDescription().getCommands().get(command).get("description");
String commandDescription = (String) plugin.getDescription().getCommands().get(command).get("description");
String commandUsage = (String) plugin.getDescription().getCommands().get(command).get("usage");
commandDisplay.add("[/" + command + "](#00fb9a show_text=&#00fb9a&" + commandUsage + " suggest_command=/" + command + ") [•](white) [" + description + "](gray)");
commandDisplay.add(MessageManager.getRawMessage("command_list_item", command, commandUsage, commandDescription));
}
MessageManager.sendMessage(player, "command_list_header");