frakkasse einzahlen von bankkonto
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user