Changed TeamUtils teams

This commit is contained in:
Auxilor
2021-04-04 13:50:17 +01:00
parent 64147c6261
commit 21f4bd79eb

View File

@@ -44,10 +44,10 @@ public class TeamUtils {
Team team;
if (!SCOREBOARD.getTeams().stream().map(Team::getName).collect(Collectors.toList()).contains("EE-" + color.name())) {
team = SCOREBOARD.registerNewTeam("EE-" + color.name());
if (!SCOREBOARD.getTeams().stream().map(Team::getName).collect(Collectors.toList()).contains("EC-" + color.name())) {
team = SCOREBOARD.registerNewTeam("EC-" + color.name());
} else {
team = SCOREBOARD.getTeam("EE-" + color.name());
team = SCOREBOARD.getTeam("EC-" + color.name());
}
assert team != null;
team.setColor(color);