Reorder PlayerJoinEvent / UpstreamBridge initialization.

Placing the PlayerJoinEvent in front of the Upstream Bridge handling prevents us from actually accessing the target server in PostJoinEvent handlers.
This commit is contained in:
jfr 2015-08-12 18:12:22 +02:00 committed by md_5
parent c4a3a052d7
commit 06ad0f9310

View File

@ -485,10 +485,8 @@ public class InitialHandler extends PacketHandler implements PendingConnection
UserConnection userCon = new UserConnection( bungee, ch, getName(), InitialHandler.this );
userCon.init();
bungee.getPluginManager().callEvent( new PostLoginEvent( userCon ) );
ch.getHandle().pipeline().get( HandlerBoss.class ).setHandler( new UpstreamBridge( bungee, userCon ) );
bungee.getPluginManager().callEvent( new PostLoginEvent( userCon ) );
ServerInfo server;
if ( bungee.getReconnectHandler() != null )
{