SteamWar/BungeeCore
Archiviert
13
2

Fix TeamCommand

Dieser Commit ist enthalten in:
yoyosource 2021-07-30 13:02:26 +02:00
Ursprung 36e303cd44
Commit 9d69d13541

Datei anzeigen

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