This commit is contained in:
kookroach
2021-04-04 19:12:55 +02:00
committed by VegaZ
parent 94270399ba
commit 86f594fc09
5 changed files with 16 additions and 11 deletions

View File

@@ -4,7 +4,8 @@ using System.Text;
using ReallifeGamemode.Server.Core.API;
using ReallifeGamemode.Server.Types;
using ReallifeGamemode.Server.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using System.Linq;
namespace ReallifeGamemode.Server.Core.Menus
{
@@ -49,6 +50,9 @@ namespace ReallifeGamemode.Server.Core.Menus
player.SendMessage("Du hast den Waffenschein erfolgreich erworben.", ChatPrefix.Info);
dbContext.Factions.Include(f => f.BankAccount).Where(f => f.Id == 1).First().BankAccount.Balance += 2500;
dbContext.Factions.Include(f => f.BankAccount).Where(f => f.Id == 3).First().BankAccount.Balance += 2500;
user.WeaponLicense = true;
dbContext.SaveChanges();
}