public static bool Run(bool silent)
 {
     // yeah eh redo
     if (!silent)
     {
         Debug.Log("Downloading newest ID list's and reloading them...");
     }
     GetWebsiteContent.WriteToFile(IdListItemsFile, "http://www.UserR00T.com/dev/BPEssentials/idlist_items.txt", new Action <bool>((success) =>
     {
         if (success)
         {
             ReadFile.Run(IdListItemsFile);
         }
         GetWebsiteContent.WriteToFile(IdListVehicleFile, "http://www.UserR00T.com/dev/BPEssentials/idlist_vehicles.txt", new Action <bool>((success2) =>
         {
             if (success2)
             {
                 ReadFile.Run(IdListVehicleFile);
             }
             if (!silent && success && success2)
             {
                 Debug.Log($"[OK] Downloaded newest ID list's and reloaded them! ({IDs_Items.Length}(items) {IDs_Vehicles.Length}(vehicles) entries loaded in.)");
             }
         }));
     }));
     return(true);
 }
        public static void Run(string fileName)
        {
            try
            {
                switch (fileName)
                {
                case SettingsFile:
                {
                    if (IsPreRelease)
                    {
                        GetWebsiteContent.WriteToFile(SettingsFile, "http://www.UserR00T.com/dev/BPEssentials/settings_test.json");
                    }
                    else
                    {
                        GetWebsiteContent.WriteToFile(SettingsFile, "http://www.UserR00T.com/dev/BPEssentials/settings.json");
                    }
                    break;
                }

                case ChatBlockFile:
                {
                    File.WriteAllText(ChatBlockFile, "");
                    break;
                }

                case LanguageBlockFile:
                {
                    File.WriteAllText(LanguageBlockFile, "");
                    break;
                }

                case CustomCommandsFile:
                {
                    GetWebsiteContent.WriteToFile(CustomCommandsFile, "http://www.UserR00T.com/dev/BPEssentials/customcommands.json");
                    break;
                }

                case CustomGroupsFile:
                {
                    GetWebsiteContent.WriteToFile(CustomGroupsFile, "http://www.UserR00T.com/dev/BPEssentials/customgroups.json");
                    break;
                }

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                ErrorLogging.Run(ex);
            }
        }