System.err.print( getPlayer(connIndex).getName() );
System.err.print( player.getName() );
    private void receiveEntityAmmoChange(Packet c, int connIndex) {        int entityId = c.getIntValue(0);        int weaponId = c.getIntValue(1);        int ammoId = c.getIntValue(2);        Entity e = game.getEntity(entityId);        // Did we receive a request for a valid Entity?        if ( null == e ) {            System.err.print                ( "Server.receiveEntityAmmoChange: could not find entity #" );            System.err.println( entityId );            return;        }        if (e.getOwner() != getPlayer(connIndex)) {            System.err.print                ( "Server.receiveEntityAmmoChange: player " );            System.err.print( getPlayer(connIndex).getName() );            System.err.print( " does not own the entity " );            System.err.println( e.getDisplayName() );            return;        }        // Make sure that the entity has the given equipment.        Mounted mWeap = e.getEquipment(weaponId);        Mounted mAmmo = e.getEquipment(ammoId);        if ( null == mAmmo ) {            System.err.print                ( "Server.receiveEntityAmmoChange: entity " );            System.err.print( e.getDisplayName() );            System.err.print( " does not have ammo #" );            System.err.println( ammoId );            return;        }        if ( !(mAmmo.getType() instanceof AmmoType) ) {            System.err.print                ( "Server.receiveEntityAmmoChange: item # " );            System.err.print( ammoId );            System.err.print( " of entity " );            System.err.print( e.getDisplayName() );            System.err.print( " is a " );            System.err.print( mAmmo.getName() );            System.err.println( " and not ammo." );            return;        }        if ( null == mWeap ) {            System.err.print                ( "Server.receiveEntityAmmoChange: entity " );            System.err.print( e.getDisplayName() );            System.err.print( " does not have weapon #" );            System.err.println( weaponId );            return;        }        if ( !(mWeap.getType() instanceof WeaponType) ) {            System.err.print                ( "Server.receiveEntityAmmoChange: item # " );            System.err.print( weaponId );            System.err.print( " of entity " );            System.err.print( e.getDisplayName() );            System.err.print( " is a " );            System.err.print( mWeap.getName() );            System.err.println( " and not a weapon." );            return;        }        if ( ((WeaponType) mWeap.getType()).getAmmoType() == AmmoType.T_NA ) {            System.err.print                ( "Server.receiveEntityAmmoChange: item # " );            System.err.print( weaponId );            System.err.print( " of entity " );            System.err.print( e.getDisplayName() );            System.err.print( " is a " );            System.err.print( mWeap.getName() );            System.err.println( " and does not use ammo." );            return;        }        // Load the weapon.        e.loadWeapon( mWeap, mAmmo );    }