9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

fix: scoreboard not adding original player who needs the packet

This commit is contained in:
LoJoSho
2025-07-01 15:02:43 -05:00
parent 397189dfd0
commit 482cb5e54d

View File

@@ -257,6 +257,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
//Adding players to the team (You have to use the NPC's name, and add it to a list) //Adding players to the team (You have to use the NPC's name, and add it to a list)
ClientboundSetPlayerTeamPacket createPlayerTeamPacket = ClientboundSetPlayerTeamPacket.createMultiplePlayerPacket(team, new ArrayList<String>() {{ ClientboundSetPlayerTeamPacket createPlayerTeamPacket = ClientboundSetPlayerTeamPacket.createMultiplePlayerPacket(team, new ArrayList<String>() {{
add(name); add(name);
add(player.getName());
}}, ClientboundSetPlayerTeamPacket.Action.ADD); }}, ClientboundSetPlayerTeamPacket.Action.ADD);
sendPacket(player, createPlayerTeamPacket); sendPacket(player, createPlayerTeamPacket);
} }