#How

1 messages · Page 1 of 1 (latest)

high gale
#

mention me pls 😄

vast plover
#

yes you have to send another one to delete the previous team

high gale
#

ty for reply

vast plover
#

show what you sent

high gale
#

and plan 2: I saved PacketPlayOutScoreBoardTeam to var, and loaded like

... editing it``` but doesn't work too
vast plover
#

you need to set one of the int fields to the option that removes team and the string field team name

#

if i remeber correctly for 1.16 the int field is i and the string is a

#

and for remove team its 1

high gale
#

hmm its 1.15.2 let me find

#

h is string in 1.15.2

vast plover
#

how did you send the first one to change the color

high gale
#

with

#

g field

#

(EnumChatFormat)

vast plover
#

you only set 1 field?

high gale
#

nop

#
PacketPlayOutScoreboardTeam scoreboard = this.packetPlayOutScoreboardTeam == null ? new PacketPlayOutScoreboardTeam() : this.packetPlayOutScoreboardTeam;
            Field field = PacketPlayOutScoreboardTeam.class.getDeclaredField("i");
            field.setAccessible(true);
            field.set(scoreboard, 0);
            Field field2 = PacketPlayOutScoreboardTeam.class.getDeclaredField("a");
            field2.setAccessible(true);
            field2.set(scoreboard, "team");
            Field field3 = PacketPlayOutScoreboardTeam.class.getDeclaredField("c");
            field3.setAccessible(true);
            field3.set(scoreboard, new ChatMessage(""));
            Field field4 = PacketPlayOutScoreboardTeam.class.getDeclaredField("b");
            field4.setAccessible(true);
            field4.set(scoreboard, new ChatMessage(""));
            Field field5 = PacketPlayOutScoreboardTeam.class.getDeclaredField("d");
            field5.setAccessible(true);
            field5.set(scoreboard, new ChatMessage(""));
            Field field6 = PacketPlayOutScoreboardTeam.class.getDeclaredField("j");
            field6.setAccessible(true);
            field6.set(scoreboard, 0);
            Field field7 = PacketPlayOutScoreboardTeam.class.getDeclaredField("g");
            field7.setAccessible(true);
            field7.set(scoreboard, color);
            Field field8 = PacketPlayOutScoreboardTeam.class.getDeclaredField("h");
            field8.setAccessible(true);
            Collection<String> collection = (Collection<String>) field8.get(scoreboard);
            collection.add(this.getEntity().getUniqueIDString());
            field8.set(scoreboard, collection);
            playerConnection.sendPacket(scoreboard);
            this.packetPlayOutScoreboardTeam = scoreboard;```
#

current code

vast plover
#

alright

#

send the same one with "i" as 1 and "a" as the same as before

#

remove the team

#

then send the create one again with the new color

high gale
high gale
#

yea I know that but

#

how to remove the team

vast plover
#

sending that will remove the team

high gale
#

ah

#

IT WORKS THANKS!