diff --git a/Server/Commands/Admin.cs b/Server/Commands/Admin.cs index 841346ef..2844f483 100644 --- a/Server/Commands/Admin.cs +++ b/Server/Commands/Admin.cs @@ -1247,7 +1247,11 @@ namespace reallife_gamemode.Server.Commands return; } - target.GetUser().GetUserBankAccount().Balance = amount; + using(var dbContext = new DatabaseContext()) + { + target.GetUser().GetUserBankAccount(dbContext).Balance = amount; + dbContext.SaveChanges(); + } } //TODO