From 525e47d24ee40443626df804e7c305439eb6ab30 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 8 Jul 2020 12:14:23 +1200 Subject: [PATCH] Fix player disguises names --- .../packetlisteners/PacketListenerScoreboardTeam.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java index 4ab43095..9b2afb91 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java @@ -43,7 +43,13 @@ public class PacketListenerScoreboardTeam extends PacketAdapter { continue; } - team = ((PlayerDisguise) disguise).getScoreboardName(); + DisguiseUtilities.DScoreTeam t = ((PlayerDisguise) disguise).getScoreboardName(); + + if (!t.getTeamName().equals(name)) { + continue; + } + + team = t; break loop; } }