mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-01 14:07:43 +01:00
send teams on join (#803)
This commit is contained in:
parent
40024da5c9
commit
5469fef417
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user