fix givemoney log

This commit is contained in:
hydrant
2021-05-17 00:43:01 +02:00
parent 0644017701
commit d79abd919e

View File

@@ -3384,7 +3384,7 @@ namespace ReallifeGamemode.Server.Commands
using (var dbContext = new DatabaseContext()) using (var dbContext = new DatabaseContext())
{ {
logger.LogInformation("Admin {0} added {2} dollars to the bank account of {1}", player.Name, target.Name, amount); logger.LogInformation("Admin {0} added {1} dollars to the bank account of {2}", player.Name, amount, target.Name);
target.GetUser(dbContext).BankAccount.Balance += amount; target.GetUser(dbContext).BankAccount.Balance += amount;
dbContext.SaveChanges(); dbContext.SaveChanges();
} }