mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 15:17:56 +01:00
don't take care about message :D
This commit is contained in:
parent
712f09cf80
commit
bf6ef0f4a0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user