1
0
mirror of https://github.com/AuthMe/AuthMeReloaded.git synced 2024-12-27 02:57:53 +01:00

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