public void loadDefaultSettings() {
        String value = getStorageHandler().getStorageEngine().getConfigEntry("longmode");
        if (value != null) {
            displayFormat = DisplayFormat.valueOf(value.toUpperCase());
        } else {
            getStorageHandler().getStorageEngine().setConfigEntry("longmode", "long");
            displayFormat = DisplayFormat.LONG;
        }
        addMetricsGraph("Display Format", displayFormat.toString());
        value = getStorageHandler().getStorageEngine().getConfigEntry("holdings");
        if (value != null && Tools.isValidDouble(value)) {
            holdings = Double.parseDouble(value);
        } else {
            getStorageHandler().getStorageEngine().setConfigEntry("holdings", 100.0 + "");
            sendConsoleMessage(Level.SEVERE, "No default value was set for account creation or was invalid! Defaulting to 100.");
            holdings = 100.0;
        }
        value = getStorageHandler().getStorageEngine().getConfigEntry("bankprice");
        if (value != null && Tools.isValidDouble(value)) {
            bankPrice = Double.parseDouble(value);
        } else {
            getStorageHandler().getStorageEngine().setConfigEntry("bankprice", 100.0 + "");
            sendConsoleMessage(Level.SEVERE, "No default value was set for bank creation or was invalid! Defaulting to 100.");
            bankPrice = 100.0;
        }
    }
public void loadDefaultSettings ( ) { String value = getStorageHandler ( ) . getStorageEngine ( ) . getConfigEntry ( "longmode" ) ; if ( value != null ) { displayFormat = DisplayFormat . valueOf ( value . toUpperCase ( ) ) ; } else { getStorageHandler ( ) . getStorageEngine ( ) . setConfigEntry ( "longmode" , "long" ) ; displayFormat = DisplayFormat . LONG ; } addMetricsGraph ( "Display Format" , displayFormat . toString ( ) ) ; value = getStorageHandler ( ) . getStorageEngine ( ) . getConfigEntry ( "holdings" ) ; if ( value != null && Tools . isValidDouble ( value ) ) { holdings = Double . parseDouble ( value ) ; } else { getStorageHandler ( ) . getStorageEngine ( ) . setConfigEntry ( "holdings" , 100.0 + "" ) ; sendConsoleMessage ( Level . SEVERE , "No default value was set for account creation or was invalid! Defaulting to 100." ) ; holdings = 100.0 ; } value = getStorageHandler ( ) . getStorageEngine ( ) . getConfigEntry ( "bankprice" ) ; if ( value != null && Tools . isValidDouble ( value ) ) { bankPrice = Double . parseDouble ( value ) ; } else { getStorageHandler ( ) . getStorageEngine ( ) . setConfigEntry ( "bankprice" , 100.0 + "" ) ; sendConsoleMessage ( Level . SEVERE , "No default value was set for bank creation or was invalid! Defaulting to 100." ) ; bankPrice = 100.0 ; } }
Reload the default settings.