From 2bbcb283b4eb8b4a670881d5cea905e4a3590837 Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Mon, 12 Apr 2021 12:33:10 +0200 Subject: [PATCH] Used Lambda --- src/de/steamwar/bungeecore/commands/TeamCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/TeamCommand.java b/src/de/steamwar/bungeecore/commands/TeamCommand.java index 503590f6..825b3b6e 100644 --- a/src/de/steamwar/bungeecore/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/commands/TeamCommand.java @@ -427,7 +427,7 @@ public class TeamCommand extends BasicCommand { Message.sendPrefixless("TEAM_INFO_TEAM", player, team.getTeamName(), team.getTeamColor(), team.getTeamKuerzel()); - List users = team.getMembers().stream().map(userId -> SteamwarUser.get(userId)).collect(Collectors.toList()); + List users = team.getMembers().stream().map(SteamwarUser::get).collect(Collectors.toList()); Message.sendPrefixless("TEAM_INFO_LEADER", player, getMemberList(users, true));