forked from SteamWar/SteamWar
Fix TeamCommand.info
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user