Fixed /setmoney (Money is now saved)
This commit is contained in:
@@ -1247,7 +1247,11 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
target.GetUser().GetUserBankAccount().Balance = amount;
|
using(var dbContext = new DatabaseContext())
|
||||||
|
{
|
||||||
|
target.GetUser().GetUserBankAccount(dbContext).Balance = amount;
|
||||||
|
dbContext.SaveChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
|
|||||||
Reference in New Issue
Block a user