From 2e06d14693122b7cc021d17b9630c814cc528e9d Mon Sep 17 00:00:00 2001 From: Siga Date: Thu, 19 Mar 2020 17:27:28 +0100 Subject: [PATCH] fix setmoney --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 0697b99a..3ff2e8e2 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -2536,7 +2536,7 @@ namespace ReallifeGamemode.Server.Commands using (var dbContext = new DatabaseContext()) { - target.GetUser().BankAccount.Balance = amount; + target.GetUser(dbContext).BankAccount.Balance = amount; dbContext.SaveChanges(); } ChatService.SendMessage(player, "~b~[ADMIN]~s~ Du hast das Geld von " + target.Name + " auf ~g~$" + amount + "~s~ gesetzt.");