Fu*** offline mode users
This commit is contained in:
parent
688c42219c
commit
beb0bf9836
@ -136,6 +136,13 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If offline mode and they are already on, don't allow connect
|
||||||
|
if ( !BungeeCord.getInstance().config.isOnlineMode() && bungee.getPlayer( handshake.username ) != null )
|
||||||
|
{
|
||||||
|
disconnect( bungee.getTranslation( "already_connected" ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.handshake = handshake;
|
this.handshake = handshake;
|
||||||
ch.write( forgeMods );
|
ch.write( forgeMods );
|
||||||
ch.write( request = EncryptionUtil.encryptRequest() );
|
ch.write( request = EncryptionUtil.encryptRequest() );
|
||||||
|
Loading…
Reference in New Issue
Block a user