Exemple #1
0
        public static bool RemoveGroup(string id)
        {
            if (GetGroup(id) == null)
            {
                return(false);
            }

            Instance.Groups.ToList().RemoveAll(p => p.Id == id);
            Permission.Save();
            return(true);
        }
        public static void FillTranslation(this Translation defaultTranslations, IUsage <Translation> deserializedTranslation)
        {
            foreach (var defaultTranslation in defaultTranslations.Where(defaultTranslation => deserializedTranslation.Instance[defaultTranslation.Key] == null))
            {
                deserializedTranslation.Instance.Add(defaultTranslation);
            }

            deserializedTranslation.Save();
        }
 public static void Save()
 {
     ModuleSettings.Save();
 }