mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 07:28:19 +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()) {
|
for (var player : MinecraftServer.getConnectionManager().getOnlinePlayers()) {
|
||||||
if (player != this) sendPacket(player.getAddPlayerToList());
|
if (player != this) sendPacket(player.getAddPlayerToList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Teams
|
||||||
|
for (Team team : MinecraftServer.getTeamManager().getTeams()) {
|
||||||
|
sendPacket(team.createTeamsCreationPacket());
|
||||||
|
}
|
||||||
|
|
||||||
// Commands
|
// Commands
|
||||||
refreshCommands();
|
refreshCommands();
|
||||||
|
Loading…
Reference in New Issue
Block a user