client.cb.systemMessage(m.getName() + " will switch to " + m.pendingMode() +
client.systemMessage(m.getName() + " will switch to " + m.pendingMode() +
    private void changeMode() {        int wn = client.mechD.wPan.getSelectedWeaponNum();        // Do nothing we have no unit selected.        if ( null == ce() ) {            return;        }        // If the weapon does not have modes, just exit.        Mounted m = ce().getEquipment(wn);        if ( m == null || !m.getType().hasModes() ) {            return;        }                // send change to the server        int nMode = m.switchMode();        client.sendModeChange(cen, wn, nMode);                // notify the player        if (m.getType().hasInstantModeSwitch()) {            client.cb.systemMessage("Switched " + m.getName() + " to " + m.curMode());        }        else {            client.cb.systemMessage(m.getName() + " will switch to " + m.pendingMode() +                     " at end of turn.");        }        this.updateTarget();        client.mechD.wPan.displayMech(ce());        client.mechD.wPan.selectWeapon(wn);    }