From 5469fef417eb83a5a0343d3285f83ec0b5db171b Mon Sep 17 00:00:00 2001 From: MrGazdag <44264503+MrGazdag@users.noreply.github.com> Date: Sat, 26 Mar 2022 16:16:35 +0100 Subject: [PATCH] send teams on join (#803) --- src/main/java/net/minestom/server/entity/Player.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index 51d4ab9d2..0c40dd62d 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -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();