Fixed /setmoney (Money is now saved)

This commit is contained in:
hydrant
2018-10-21 00:00:33 +02:00
parent c417c68aa1
commit 6c3383ca2b

View File

@@ -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