send teams on join (#803)

This commit is contained in:
MrGazdag 2022-03-26 16:16:35 +01:00 committed by GitHub
parent 40024da5c9
commit 5469fef417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,11 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
for (var player : MinecraftServer.getConnectionManager().getOnlinePlayers()) {
if (player != this) sendPacket(player.getAddPlayerToList());
}
//Teams
for (Team team : MinecraftServer.getTeamManager().getTeams()) {
sendPacket(team.createTeamsCreationPacket());
}
// Commands
refreshCommands();