From 1376b10d6f24df0f70ca0d5af45b8e41ff896f5e Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 21 Oct 2018 12:20:53 +0200 Subject: [PATCH] Fixed /givemoney --- Server/Commands/Admin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Commands/Admin.cs b/Server/Commands/Admin.cs index 080dc154..dcd78730 100644 --- a/Server/Commands/Admin.cs +++ b/Server/Commands/Admin.cs @@ -1280,7 +1280,7 @@ namespace reallife_gamemode.Server.Commands using (var dbContext = new DatabaseContext()) { - amount = +target.GetUser().GetUserBankAccount(dbContext).Balance; + target.GetUser().GetUserBankAccount(dbContext).Balance += amount; dbContext.SaveChanges(); } player.SendChatMessage("~b~[ADMIN]~s~ Du hast " + target.Name + " ~g~$" + amount + "~s~ gegeben.");