Fixed /givemoney

This commit is contained in:
hydrant
2018-10-21 12:20:53 +02:00
parent 73a8a5dbf2
commit 1376b10d6f

View File

@@ -1280,7 +1280,7 @@ namespace reallife_gamemode.Server.Commands
using (var dbContext = new DatabaseContext()) using (var dbContext = new DatabaseContext())
{ {
amount = +target.GetUser().GetUserBankAccount(dbContext).Balance; target.GetUser().GetUserBankAccount(dbContext).Balance += amount;
dbContext.SaveChanges(); dbContext.SaveChanges();
} }
player.SendChatMessage("~b~[ADMIN]~s~ Du hast " + target.Name + " ~g~$" + amount + "~s~ gegeben."); player.SendChatMessage("~b~[ADMIN]~s~ Du hast " + target.Name + " ~g~$" + amount + "~s~ gegeben.");