static void Main() { DownloadManager.CheckForInternetConnection(); PathData.InitDirectories(); CheckForUpdates(); NewsStorage.InitDirectories(); SettingsManager.Load(); MinecraftUserData.loadUsers(); ScheduleMinecraftVersionJsonDownload(); MinecraftAssetManager.LoadAssets(); PluginManager.LoadPlugins(); PluginManager.EnablePlugins(); SettingsManager.AddDefault("javapath", "java", "java.exe", Setting._Type._string); SettingsManager.AddDefault("MinecraftRAM", "java", "2G", Setting._Type._string); SettingsManager.AddDefault("Sync options", "sync", true, Setting._Type._bool); SettingsManager.AddDefault("Sync serverlists", "sync", true, Setting._Type._bool); App app = new App(); App.sysTray = new SystemTray(); App.logFile = (PathData.LogPath + "\\" + DateTime.Now.ToString("s").Replace(':', '-') + ".log"); mainWindow = new MainWindow(); SettingsManager.LoadList(); app.Run(mainWindow); App.sysTray.destroy(); PluginManager.DisablePlugins(); InstanceManager.SaveInstances(); MinecraftUserData.saveUsers(); SettingsManager.Save(); AppendLogFile(); }