/// <summary> /// save/reset the modified SPs in the database /// </summary> private void SaveSP() { foreach (var current in modifyed_sp) { db.SaveObject((ServerProperty)current.Value); } sp_saved = true; LoadServerProperties(); }
public void UpdateAccount(Account acct) { acct.Dirty = true; Database.SaveObject(acct); Database.ForceSave(); Log.Success("AccountMgr", "Updated account " + acct.Username); lock (_accounts) { if (_accounts.ContainsKey(acct.Username.ToLower())) { _accounts.Remove(acct.Username.ToLower()); } _accounts[acct.Username.ToLower()] = acct; } }