public static void Save() { var data = JsonConvert.SerializeObject(ServerSideCharacter2.Config, Formatting.Indented); using (var writer = new StreamWriter(defaultName, false, Encoding.UTF8)) { writer.Write(data); } GroupConfigManager.Save(); UnionDataManager.Save(); RegionConfig.Save(); RankData.Save(ServerSideCharacter2.RankData); }