forked from Upstream/Velocitab
Ensure roleMappings are updated when team is made
This commit is contained in:
parent
0a39899705
commit
6cea56364e
@ -40,6 +40,7 @@ public class ScoreboardManager {
|
||||
if (!createdTeams.getOrDefault(player.getUniqueId(), List.of()).contains(role)) {
|
||||
dispatchPacket(UpdateTeamsPacket.create(role, playerNames), player);
|
||||
createdTeams.computeIfAbsent(player.getUniqueId(), k -> new ArrayList<>()).add(role);
|
||||
roleMappings.computeIfAbsent(player.getUniqueId(), k -> new HashMap<>()).put(player.getUsername(), role);
|
||||
} else {
|
||||
roleMappings.getOrDefault(player.getUniqueId(), Map.of())
|
||||
.entrySet().stream()
|
||||
|
Loading…
Reference in New Issue
Block a user