SteamWar/BungeeCore
Archiviert
13
2

Fix HelpCommand

Dieser Commit ist enthalten in:
jojo 2020-11-19 22:35:19 +01:00
Ursprung 4ba2b56d19
Commit 6c68aab3dd

Datei anzeigen

@ -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;
}