diff --git a/src/main/java/fr/xephi/authme/listener/protocollib/AuthMeTablistPacketAdapter.java b/src/main/java/fr/xephi/authme/listener/protocollib/AuthMeTablistPacketAdapter.java index dd24bdb16..a26bec83c 100644 --- a/src/main/java/fr/xephi/authme/listener/protocollib/AuthMeTablistPacketAdapter.java +++ b/src/main/java/fr/xephi/authme/listener/protocollib/AuthMeTablistPacketAdapter.java @@ -42,8 +42,9 @@ public class AuthMeTablistPacketAdapter extends PacketAdapter { @Override public void onPacketSending(PacketEvent packetEvent) { + Player receiver = packetEvent.getPlayer(); if (packetEvent.getPacketType() == PacketType.Play.Server.PLAYER_INFO - && PlayerCache.getInstance().isAuthenticated(packetEvent.getPlayer().getName().toLowerCase())) { + && !PlayerCache.getInstance().isAuthenticated(receiver.getName().toLowerCase())) { //this hides the tablist for the new joining players. Already playing users will see the new player try { PacketContainer packet = packetEvent.getPacket();