internal static void Init() { if (!InitializationFile.Exists()) { GenerateConfig(); } configuration = new Configuration(); try { configuration.Version = InitializationFile.ReadInt32("Main", "Version"); } catch (Exception e) { InitializationFile.Delete(); Game.DisplayNotification("Please try reload this plug-in once!"); Game.DisplayNotification("If still can't, grab logs and visit <strong>Service Desk</strong>, URL is in logs!"); Game.LogTrivial("URL: https://hotworkshop.atlassian.net/servicedesk/customer/portal/2"); var cr = new CrashReporter(e); cr.ReportAndCrashPlugin(); } if (configuration.Version != 2) { InitializationFile.Delete(); Game.DisplayHelp("Please reload the plug-in using the console!"); Game.DisplayNotification("Please reload the plug-in using the console!"); new CrashReporter(new FormatException("Invalid configuration version - please restart!")).ReportAndCrashPlugin(); } }