frakkasse einzahlen von bankkonto

This commit is contained in:
2020-08-06 20:56:49 +02:00
parent fd99e6b916
commit 7e5eb6307c

View File

@@ -169,7 +169,7 @@ namespace ReallifeGamemode.Server.Bank
else
{
player.SendNotification($"~w~Du hast $~g~{amount}~w~ in die Fraktionskasse eingezahlt.");
player.GetUser(dbContext).Handmoney -= amount;
player.GetUser(dbContext).BankAccount.Balance -= amount;
player.GetUser(dbContext).Faction.BankAccount.Balance += amount;
dbContext.SaveChanges();
}