mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-28 11:37:33 +01:00
Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 358-encryptn-mthd-refactor
This commit is contained in:
commit
71f8a01179
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user