Buggy code:
public class LoginServer extends SimpleApplication { protected static final float TIMEOUT = 5.0F ; protected static LoginServer app ; protected static final int MAX_PLAYERS = 6 ; protected static final int PICKUP_MARGIN = 5 ; protected static final int MAX_HEALTH = 100 ; protected static final int DAMAGE_BULLET = 25 ; private static Server server ; private HostedConnection [ ] hostedConnections ; private BulletAppState bas ; private ServerPlayer [ ] players ; private String [ ] nicknames ; private int connectedPlayers ; private int redPlayers ; private int bluePlayers ; private Vector3f treasureLocation ; private TerrainQuad terrain ; private float [ ] timeouts ; private static Vector3f [ ] initialPositions ; private float periodic_threshold = 0 ; private boolean redServerConnected ; private boolean blueServerConnected ; private HostedConnection redServer ; private HostedConnection blueServer ; private HashMap < String , Integer > nicknameToId ; private static ServerGameState state ; private Node shootables ; public static void main ( String [ ] args ) { } public LoginServer ( ) { } @ Override public void simpleInitApp ( ) { } @ Override public void simpleUpdate ( float tpf ) { } float tempCounter = 0 ; @ Override public void simpleRender ( RenderManager rm ) { } public static Vector3f getInitialPosition ( int id ) { } public static Vector3f getSpawnZonePoint ( Team team ) { } @ Override public void destroy ( ) { } private boolean repeatedNickname ( String nickname ) { } private int connectPlayer ( HostedConnection s ) { } private void setUpInitialPositions ( ) { } private Team chooseTeam ( int id ) { } private Quaternion arrayToQuaternion ( float [ ] r ) { } private class MessageHandler implements MessageListener < HostedConnection > { public void messageReceived ( final HostedConnection source , final Message m ) { } private void actionAggregation ( final HostedConnection source , final Message m ) { } private void actionConnect ( final HostedConnection source , final Message m ) { if ( m instanceof Connect ) { Connect message = ( ( Connect ) ( m ) ) ; final String nickname = message . getNickname ( ) ; if ( ( LoginServer . state ) == ( ServerGameState . GameStopped ) ) { if ( ( connectedPlayers ) != ( LoginServer . MAX_PLAYERS ) ) { if ( ( ( nickname . length ( ) ) > 0 ) && ( ( nickname . length ( ) ) <= 8 ) ) { if ( ! ( repeatedNickname ( nickname ) ) ) { LoginServer . app . enqueue ( new Callable ( ) { public Object call ( ) throws Exception { int idNew = connectPlayer ( source ) ; nicknameToId . put ( nickname , idNew ) ; System . out . println ( "Send<seq2seq4repair_space>message" ) ; blueServer . send ( new NewConnection ( nickname , idNew ) ) ; <START_BUG> LoginServer . server . broadcast ( Filters . equalTo ( blueServer ) , new NewConnection ( nickname , idNew ) ) ; <END_BUG> final Team newTeam = chooseTeam ( idNew ) ; Timer t = new Timer ( ) ; t . schedule ( new TimerTask ( ) { @ Override public void run ( ) { if ( newTeam . equals ( Blue ) ) { source . send ( new ConnectServer ( Networking . HOST_BLUE , Networking . PORT_BLUE ) ) ; } else if ( newTeam . equals ( Red ) ) { source . send ( new ConnectServer ( Networking . HOST_RED , Networking . PORT_RED ) ) ; } } } , 500 ) ; return null ; } } ) ; } else { LoginServer . server . broadcast ( Filters . equalTo ( source ) , new ConnectionRejected ( "Nickname<seq2seq4repair_space>already<seq2seq4repair_space>in<seq2seq4repair_space>use" ) ) ; } } else { LoginServer . server . broadcast ( Filters . equalTo ( source ) , new ConnectionRejected ( "Bad<seq2seq4repair_space>nickname" ) ) ; } } else { LoginServer . server . broadcast ( Filters . equalTo ( source ) , new ConnectionRejected ( "Maximum<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>clients<seq2seq4repair_space>already<seq2seq4repair_space>connected" ) ) ; } } else { LoginServer . server . broadcast ( Filters . equalTo ( source ) , new ConnectionRejected ( "Game<seq2seq4repair_space>has<seq2seq4repair_space>already<seq2seq4repair_space>started" ) ) ; } } } private void actionPlayerMoved ( final HostedConnection source , final Message m ) { } private void actionMarkInput ( final HostedConnection source , final Message m ) { } private void actionFireInput ( final HostedConnection source , final Message m ) { } private void actionPickTreasureInput ( final HostedConnection source , final Message m ) { } private void actionWantToRespawn ( final HostedConnection source , final Message m ) { } private void actionLoginConnected ( final HostedConnection source , final Message m ) { } } protected static ServerGameState getGameState ( ) { } protected static void changeGameState ( ServerGameState newState ) { } private Prepare packPrepareMessage ( ) { } private int findId ( HostedConnection source ) { } private int checkShooted ( int id , CollisionResults results ) { } public int getId ( String nick ) { } }

Fix:
redServer . send ( new NewConnection ( nickname , idNew ) ) ;