bissl formattiert

This commit is contained in:
hydrant
2020-05-10 22:54:18 +02:00
parent 914f2f9447
commit 2c648d52dd
105 changed files with 8184 additions and 8184 deletions

View File

@@ -6,24 +6,24 @@ using ReallifeGamemode.Server.Extensions;
namespace ReallifeGamemode.Server.Wanted
{
public class Autowanted
{
public static void Check_AutoWanted(Player killerPlayer, Player copPlayer)
{
public static void Check_AutoWanted(Player killerPlayer, Player copPlayer)
{
User killer = killerPlayer.GetUser();
if (killer.FactionId == 1 || killer.FactionId == 3)
return;
User killer = killerPlayer.GetUser();
if (killer.FactionId == 1 || killer.FactionId == 3)
return;
User cop = copPlayer.GetUser();
if (!cop.GetData<bool>("duty")) return;
if (cop.FactionId == 1 || cop.FactionId == 3)
{
using (var dbContext = new DatabaseContext())
{
killer = killerPlayer.GetUser(dbContext);
killer.GiveWanteds(copPlayer, 10, "Beamten-Mord");
dbContext.SaveChanges();
}
}
User cop = copPlayer.GetUser();
if (!cop.GetData<bool>("duty")) return;
if (cop.FactionId == 1 || cop.FactionId == 3)
{
using (var dbContext = new DatabaseContext())
{
killer = killerPlayer.GetUser(dbContext);
killer.GiveWanteds(copPlayer, 10, "Beamten-Mord");
dbContext.SaveChanges();
}
}
}
}
}