Code formatiert

This commit is contained in:
Lennart Kampshoff
2019-12-21 14:03:06 +01:00
parent c5f72c2ce5
commit ed95acc24d
56 changed files with 1771 additions and 1764 deletions

View File

@@ -15,18 +15,18 @@ namespace ReallifeGamemode.Server.Wanted
User killer = killerPlayer.GetUser();
if (killer.FactionId == 1 || killer.FactionId == 3)
return;
User cop = copPlayer.GetUser();
if(cop.FactionId == 1 || cop.FactionId == 3)
User cop = copPlayer.GetUser();
if (cop.FactionId == 1 || cop.FactionId == 3)
{
using (var dbContext = new DatabaseContext())
{
using (var dbContext = new DatabaseContext())
{
killer = killerPlayer.GetUser(dbContext);
killer.GiveWanteds(copPlayer, 10, "Beamten-Mord");
dbContext.SaveChanges();
}
killer = killerPlayer.GetUser(dbContext);
killer.GiveWanteds(copPlayer, 10, "Beamten-Mord");
dbContext.SaveChanges();
}
}
}
}
}

View File

@@ -106,12 +106,12 @@ namespace ReallifeGamemode.Server.Wanted
break;
}
}
}
}
}
}
public static void JailTimer()
{
@@ -203,7 +203,8 @@ namespace ReallifeGamemode.Server.Wanted
if (((int)(user.JailTime / 60)) == 0 && user.JailTime != 0)
{
timeMinutes = 1;
} else
}
else
{
timeMinutes = (int)(user.JailTime / 60);
}
@@ -241,7 +242,7 @@ namespace ReallifeGamemode.Server.Wanted
player.TriggerEvent("jailTime", 0);
}
}
public static void Release_Jail_Admin(Client admin, Client target)
{
User user = target.GetUser();

View File

@@ -70,7 +70,7 @@ namespace ReallifeGamemode.Server.Wanted
using (var dbContext = new DatabaseContext())
{
player.GetUser(dbContext).Wanteds -= 1;
if(player.GetUser(dbContext).Wanteds == 0)
if (player.GetUser(dbContext).Wanteds == 0)
{
switch (player.GetUser(dbContext).FactionId)
{