mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
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:
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=�fb9a&" + commandUsage + " suggest_command=/" + command + ") [•](white) [" + description + "](gray)");
|
||||
commandDisplay.add(MessageManager.getRawMessage("command_list_item", command, commandUsage, commandDescription));
|
||||
}
|
||||
|
||||
MessageManager.sendMessage(player, "command_list_header");
|
||||
|
||||
Reference in new issue
Block a user