Fixed /setmoney (Money is now saved)

This commit is contained in:
hydrant
2018-10-21 00:00:33 +02:00
parent e54b03502b
commit 723e58d890

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