Merge pull request #261 from roblabla/patch-2
Fix LoginEvent not being called.
This commit is contained in:
commit
51be33dbd7
@ -175,15 +175,16 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
{
|
{
|
||||||
old.disconnect( "You are already connected to the server" );
|
old.disconnect( "You are already connected to the server" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// fire login event
|
|
||||||
LoginEvent event = new LoginEvent( InitialHandler.this );
|
|
||||||
if ( bungee.getPluginManager().callEvent( event ).isCancelled() )
|
|
||||||
{
|
|
||||||
disconnect( event.getCancelReason() );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fire login event
|
||||||
|
LoginEvent event = new LoginEvent( InitialHandler.this );
|
||||||
|
if ( bungee.getPluginManager().callEvent( event ).isCancelled() )
|
||||||
|
{
|
||||||
|
disconnect( event.getCancelReason() );
|
||||||
|
}
|
||||||
|
|
||||||
Cipher encrypt = EncryptionUtil.getCipher( Cipher.ENCRYPT_MODE, shared );
|
Cipher encrypt = EncryptionUtil.getCipher( Cipher.ENCRYPT_MODE, shared );
|
||||||
Cipher decrypt = EncryptionUtil.getCipher( Cipher.DECRYPT_MODE, shared );
|
Cipher decrypt = EncryptionUtil.getCipher( Cipher.DECRYPT_MODE, shared );
|
||||||
ch.write( new PacketFCEncryptionResponse() );
|
ch.write( new PacketFCEncryptionResponse() );
|
||||||
|
Loading…
Reference in New Issue
Block a user