SteamWar/BungeeCore
Archiviert
13
2

Hotfix TeamCommand

Dieser Commit ist enthalten in:
yoyosource 2021-07-30 13:06:35 +02:00
Ursprung 9d69d13541
Commit ebfe912627

Datei anzeigen

@ -69,12 +69,11 @@ public class TeamCommand extends BasicDiscordCommand {
return;
}
EmbedBuilder embedBuilder = new EmbedBuilder();
embedBuilder.setTitle("Team: " + team.getTeamName());
embedBuilder.setTitle("Team: " + team.getTeamName() + " [" + team.getTeamKuerzel() + "]");
embedBuilder.setColor(Color.GRAY);
embedBuilder.addField("Kuerzel", team.getTeamKuerzel(), true);
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);
embedBuilder.addField("Leader", "`" + team.getMembers().stream().map(SteamwarUser::get).filter(SteamwarUser::isLeader).map(SteamwarUser::getUserName).collect(Collectors.joining("` `")) + "`", false);
embedBuilder.addField("Member", "`" + team.getMembers().stream().map(SteamwarUser::get).filter(user -> !user.isLeader()).map(SteamwarUser::getUserName).collect(Collectors.joining("` `")) + "`", false);
embedBuilder.addField("Events", TeamTeilnahme.getEvents(team.getTeamId()).stream().map(Event::getEventName).collect(Collectors.joining(" ")), false);
event.replyEmbeds(embedBuilder.build()).setEphemeral(true).complete();
return;
default: