From 8311221efcfde2b5b36bc40f413aeb051f0153cd Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 17 Aug 2019 23:39:07 +0200 Subject: [PATCH] Update shop command help message --- .../de/epiceric/shopchest/api/command/ShopCommand.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/de/epiceric/shopchest/api/command/ShopCommand.java b/api/src/main/java/de/epiceric/shopchest/api/command/ShopCommand.java index 4810e99..2a33f8b 100644 --- a/api/src/main/java/de/epiceric/shopchest/api/command/ShopCommand.java +++ b/api/src/main/java/de/epiceric/shopchest/api/command/ShopCommand.java @@ -130,9 +130,12 @@ public abstract class ShopCommand { * @since 1.13 */ public void sendUsage(CommandSender sender) { - String format = "[green] /%s %s [white] - [yellow] %s"; // TODO: i18n + // Use same help format as in default bukkit help message + sender.sendMessage("§e--------- §fHelp: ShopChest §e-----------------------"); + sender.sendMessage("§7Below is a list of all ShopChest commands:"); subCommands.stream().filter(sub -> sub.canExecute(sender) && sub.isPermitted(sender)) - .forEach(sub -> sender.sendMessage(String.format(format, sub.getName(), sub.getDescription()))); + .forEach(sub -> sender.sendMessage(String.format("§6/%s %s: §f%s", getName(), sub.getName(), + sub.getDescription()))); } } \ No newline at end of file