From 6c68aab3dd7ebb372ffa672eea4960688429ce83 Mon Sep 17 00:00:00 2001 From: jojo Date: Thu, 19 Nov 2020 22:35:19 +0100 Subject: [PATCH] Fix HelpCommand --- src/de/steamwar/bungeecore/commands/HelpCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/HelpCommand.java b/src/de/steamwar/bungeecore/commands/HelpCommand.java index 11d23fc..140e996 100644 --- a/src/de/steamwar/bungeecore/commands/HelpCommand.java +++ b/src/de/steamwar/bungeecore/commands/HelpCommand.java @@ -33,7 +33,7 @@ public class HelpCommand extends BasicCommand { @Override public void execute(CommandSender sender, String[] args) { - if (args.length != 1) { + if (args.length < 1) { Message.send("HELP_LOBBY", true, sender, ChatMessageType.SYSTEM, Message.parse("HELP_LOBBY_HOVER", sender), new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/l")); Message.send("HELP_BAU", true, sender, ChatMessageType.SYSTEM, Message.parse("HELP_BAU_HOVER", sender), new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/bau")); Message.send("HELP_BAUSERVER", true, sender, ChatMessageType.SYSTEM, Message.parse("HELP_BAUSERVER_HOVER", sender), new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/help bauserver")); @@ -56,7 +56,7 @@ public class HelpCommand extends BasicCommand { } private static void bauHelpGroup(ProxiedPlayer p, String[] args) { - if (args.length != 2) { + if (args.length < 2) { sendBauHelpGroup(p); return; }