Merge pull request 'Comma seperated team info' (#266) from commaTeamInfo into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #266
Dieser Commit ist enthalten in:
Commit
d6aefa9ec7
@ -441,10 +441,7 @@ public class TeamCommand extends BasicCommand {
|
|||||||
|
|
||||||
Set<Event> events = TeamTeilnahme.getEvents(team.getTeamId());
|
Set<Event> events = TeamTeilnahme.getEvents(team.getTeamId());
|
||||||
if(!events.isEmpty()){
|
if(!events.isEmpty()){
|
||||||
StringBuilder sb = new StringBuilder();
|
Message.sendPrefixless("TEAM_INFO_EVENTS", player, events.stream().map(Event::getEventName).collect(Collectors.joining(", ")));
|
||||||
for(Event e : events)
|
|
||||||
sb.append(e.getEventName()).append(" ");
|
|
||||||
Message.sendPrefixless("TEAM_INFO_EVENTS", player, sb.toString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren