private void ReadConfig(string fileName) { var spawnLoc = new Vector3S(); _serverVersion = _configFile.Read("Server_Version", 0); MapSize.X = short.Parse(_configFile.Read("Size_X", "0")); MapSize.Y = short.Parse(_configFile.Read("Size_Y", "0")); MapSize.Z = short.Parse(_configFile.Read("Size_Z", "0")); _UUID = _configFile.Read("Unique_ID", GenerateUuid()); Name = _configFile.Read("Name", "Map_Name_Here"); _buildRank = _configFile.Read("Rank_Build", 0); _showRank = _configFile.Read("Rank_Show", 0); _joinRank = _configFile.Read("Rank_Join", 0); _physics = _configFile.Read("Physic_Stopped", 0) == 1; _motd = _configFile.Read("MOTD_Override", ""); _saveInterval = _configFile.Read("Save_Intervall", 10); _overviewType = (D3OverviewType)_configFile.Read("Overview_Type", 2); spawnLoc.X = (short)(double.Parse(_configFile.Read("Spawn_X", "0")) * 32); spawnLoc.Y = (short)(double.Parse(_configFile.Read("Spawn_Y", "0")) * 32); spawnLoc.Z = (short)(double.Parse(_configFile.Read("Spawn_Z", "0")) * 32); MapSpawn.Rotation = (byte)_configFile.Read("Spawn_Rot", 0); MapSpawn.Look = (byte)_configFile.Read("Spawn_Look", 0); MapSpawn.SetAsPlayerCoords(spawnLoc); }