mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-20 15:54:57 +01:00
Remove players from player team map on team remove
This commit is contained in:
parent
0388785ea7
commit
25c2d30881
1 changed files with 3 additions and 0 deletions
|
@ -351,6 +351,9 @@ public final class Scoreboard {
|
||||||
// We need to use the direct entities list here, so #refreshSessionPlayerDisplays also updates accordingly
|
// We need to use the direct entities list here, so #refreshSessionPlayerDisplays also updates accordingly
|
||||||
// With the player's lack of a team in visibility checks
|
// With the player's lack of a team in visibility checks
|
||||||
updateEntityNames(remove, remove.getEntities(), true);
|
updateEntityNames(remove, remove.getEntities(), true);
|
||||||
|
for (String name : remove.getEntities()) {
|
||||||
|
playerToTeam.remove(name, remove);
|
||||||
|
}
|
||||||
|
|
||||||
session.removeCommandEnum("Geyser_Teams", remove.getId());
|
session.removeCommandEnum("Geyser_Teams", remove.getId());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue