sendServerChat("Player " + getPlayer(connId).getName() + " changed option \"" + originalOption.getFullName() + "\" to " + option.stringValue() + ".");
StringBuffer message = new StringBuffer(); message.append( "Player " ) .append( player.getName() ) .append( " changed option \"" ) .append( originalOption.getFullName() ) .append( "\" to " ) .append( option.stringValue() ) .append( "." ); sendServerChat( message.toString() );
    private boolean receiveGameOptions(Packet packet, int connId) {        // check password        if (password != null && password.length() > 0 && !password.equals(packet.getObject(0))) {            sendServerChat(connId, "The password you specified to change game options is incorrect.");            return false;        }                int changed = 0;        boolean infLastValue =            game.getOptions().getOption("inf_move_last").booleanValue();        boolean infMultiValue =            game.getOptions().getOption("inf_move_multi").booleanValue();                for (Enumeration i = ((Vector)packet.getObject(1)).elements(); i.hasMoreElements();) {            GameOption option = (GameOption)i.nextElement();            GameOption originalOption = game.getOptions().getOption(option.getShortName());                        if (originalOption == null) {                continue;            }                        sendServerChat("Player " + getPlayer(connId).getName() + " changed option \"" + originalOption.getFullName() + "\" to " + option.stringValue() + ".");            // Record mutually-exclusive infantry move options.            if ( option.getShortName().equals("inf_move_last") ) {                infLastValue = option.booleanValue();            }            else if ( option.getShortName().equals("inf_move_multi") ) {                infMultiValue = option.booleanValue();            }            originalOption.setValue(option.getValue());            changed++;        }        // Infantry move options can't BOTH be on!!!        if ( infLastValue && (infLastValue == infMultiValue) ) {            sendServerChat("Player " + getPlayer(connId).getName() + " tried to set BOTH \"" + game.getOptions().getOption("inf_move_last").getFullName() + "\" and \""  + game.getOptions().getOption("inf_move_multi").getFullName() + "\" to true.");            sendServerChat("Clearing *BOTH* options.");            game.getOptions().getOption("inf_move_last").setValue(false);            game.getOptions().getOption("inf_move_multi").setValue(false);            changed += 2;        }                // Set proper RNG        Compute.setRNG(game.getOptions().intOption("rng_type"));        return changed > 0;    }