From 2a9636b99506bd2782829636866a56eb8a9b609a Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 14 May 2021 14:38:39 +0200 Subject: [PATCH] Add SWCommand.internalHelp --- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 700153c..c44c0bb 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -178,7 +178,7 @@ public abstract class SWCommand { } @Register - private void internalHelp(CommandSender sender, String... args){ + private void internalHelp(CommandSender sender, String... args) { if (help.isEmpty()) { commandList.forEach(subCommand -> { StringBuilder st = new StringBuilder(); @@ -200,10 +200,11 @@ public abstract class SWCommand { if (subCommand.varArgType != null) { st.append("§7..."); } + st.append("§8 - §7Description Here"); help.add(st.toString()); }); } - sender.sendMessage("§7Help§8: §e" + command.getName()); + sender.sendMessage("§7----==== §e" + command.getName() + "§7====----"); help.forEach(sender::sendMessage); }