From bf6ef0f4a0a66f526bde43a407715df5f3eb6a92 Mon Sep 17 00:00:00 2001 From: Xephi <xephirot59@gmail.com> Date: Wed, 30 Dec 2015 13:54:54 +0100 Subject: [PATCH] don't take care about message :D --- .../xephi/authme/listener/AuthMeTabCompletePacketAdapter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/listener/AuthMeTabCompletePacketAdapter.java b/src/main/java/fr/xephi/authme/listener/AuthMeTabCompletePacketAdapter.java index 3c385070a..3bb083592 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMeTabCompletePacketAdapter.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMeTabCompletePacketAdapter.java @@ -23,8 +23,7 @@ public class AuthMeTabCompletePacketAdapter extends PacketAdapter { if (event.getPacketType() == PacketType.Play.Client.TAB_COMPLETE) { try { - String message = ((String)event.getPacket().getSpecificModifier(String.class).read(0)).toLowerCase(); - if ((message.startsWith("")) && (!message.contains(" ")) && !PlayerCache.getInstance().isAuthenticated(event.getPlayer().getName().toLowerCase())) { + if (!PlayerCache.getInstance().isAuthenticated(event.getPlayer().getName().toLowerCase())) { event.setCancelled(true); } }