From 9d69d13541bef3c29f6686d5588ed2b540d105b2 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 30 Jul 2021 13:02:26 +0200 Subject: [PATCH] Fix TeamCommand --- src/de/steamwar/bungeecore/bot/commands/TeamCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java b/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java index 75fdcff..d2c6e44 100644 --- a/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java @@ -48,7 +48,6 @@ public class TeamCommand extends BasicDiscordCommand { if (steamwarUser == null) { return; } - System.out.println(event.getName() + " " + event.getSubcommandName() + " " + event.getOptions()); if (event.getSubcommandName() != null) { switch (event.getSubcommandName()) { @@ -76,8 +75,10 @@ public class TeamCommand extends BasicDiscordCommand { embedBuilder.addField("Leader", team.getMembers().stream().map(SteamwarUser::get).filter(SteamwarUser::isLeader).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true); embedBuilder.addField("Member", team.getMembers().stream().map(SteamwarUser::get).filter(user -> !user.isLeader()).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true); embedBuilder.addField("Events", TeamTeilnahme.getEvents(team.getTeamId()).stream().map(Event::getEventName).collect(Collectors.joining(" ")), true); + event.replyEmbeds(embedBuilder.build()).setEphemeral(true).complete(); return; default: + event.reply("Unbekannter Befehl").setEphemeral(true).complete(); return; } }