don't take care about message :D

This commit is contained in:
Xephi 2015-12-30 13:54:54 +01:00
parent 712f09cf80
commit bf6ef0f4a0

View File

@ -23,8 +23,7 @@ public class AuthMeTabCompletePacketAdapter extends PacketAdapter {
if (event.getPacketType() == PacketType.Play.Client.TAB_COMPLETE) { if (event.getPacketType() == PacketType.Play.Client.TAB_COMPLETE) {
try try
{ {
String message = ((String)event.getPacket().getSpecificModifier(String.class).read(0)).toLowerCase(); if (!PlayerCache.getInstance().isAuthenticated(event.getPlayer().getName().toLowerCase())) {
if ((message.startsWith("")) && (!message.contains(" ")) && !PlayerCache.getInstance().isAuthenticated(event.getPlayer().getName().toLowerCase())) {
event.setCancelled(true); event.setCancelled(true);
} }
} }