private void loadConfig(){
  config.load();
  spawnRadius=config.getInt(Key.SPAWN_RADIUS);
  whitelistEnabled=config.getBoolean(Key.WHITELIST);
  idleTimeout=config.getInt(Key.PLAYER_IDLE_TIMEOUT);
  craftingManager.initialize();
  warnState=WarningState.value(config.getString(Key.WARNING_STATE));
  try {
    defaultGameMode=GameMode.valueOf(config.getString(Key.GAMEMODE));
  }
 catch (  IllegalArgumentException|NullPointerException e) {
    defaultGameMode=GameMode.SURVIVAL;
  }
  defaultIcon=new GlowServerIcon();
  try {
    File file=config.getFile("server-icon.png");
    if (file.isFile()) {
      defaultIcon=new GlowServerIcon(file);
    }
  }
 catch (  Exception e) {
    logger.log(Level.WARNING,"Failed to load server-icon.png",e);
  }
}

private void loadConfig ( ) { config . load ( ) ; spawnRadius = config . getInt ( Key . SPAWN_RADIUS ) ; whitelistEnabled = config . getBoolean ( Key . WHITELIST ) ; idleTimeout = config . getInt ( Key . PLAYER_IDLE_TIMEOUT ) ; craftingManager . initialize ( ) ; warnState = WarningState . value ( config . getString ( Key . WARNING_STATE ) ) ; try { defaultGameMode = GameMode . valueOf ( config . getString ( Key . GAMEMODE ) ) ; } catch ( IllegalArgumentException | NullPointerException e ) { defaultGameMode = GameMode . SURVIVAL ; } defaultIcon = new GlowServerIcon ( ) ; try { File file = config . getFile ( "server-icon.png" ) ; if ( file . isFile ( ) ) { defaultIcon = new GlowServerIcon ( file ) ; } } catch ( Exception e ) { logger . log ( Level . WARNING , "Failed to load server-icon.png" , e ) ; } }
load the server configuration .
