Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 358-encryptn-mthd-refactor

This commit is contained in:
ljacqu 2015-12-30 21:37:52 +01:00
commit 71f8a01179

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);
} }
} }