From ebfe912627d3876e1f19567247ba436931e0c704 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 30 Jul 2021 13:06:35 +0200 Subject: [PATCH] Hotfix TeamCommand --- src/de/steamwar/bungeecore/bot/commands/TeamCommand.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java b/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java index d2c6e44..904d73c 100644 --- a/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/bot/commands/TeamCommand.java @@ -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: