Fix LoginEvent not being called.
If the server is in offline mode, the LoginEvent should be called.
This commit is contained in:
		| @@ -176,12 +176,13 @@ public class InitialHandler extends PacketHandler implements PendingConnection | ||||
|                             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 ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Robin Lambertz
					Robin Lambertz