Fix TeamCommand.info

This commit is contained in:
2026-09-07 14:03:06 +02:00
parent 6f1403df9c
commit 6209b86149
@@ -287,6 +287,10 @@ public class TeamCommand extends SWCommand {
@Register(value = "info", description = "TEAM_INFO_USAGE")
public void info(Chatter sender, @ErrorMessage("UNKNOWN_TEAM") Team team) {
if (team.getMembers().isEmpty()) {
sender.system("UNKNOWN_TEAM");
return;
}
List<SteamwarUser> users = team.getMembers().stream().map(SteamwarUser::byId).toList();
sender.system("TEAM_INFO_TEAM", team.getTeamName(), team.getTeamColor(), team.getTeamKuerzel());