evtl fix error bei tot
This commit is contained in:
@@ -126,6 +126,11 @@ namespace ReallifeGamemode.Server.Extensions
|
||||
|
||||
foreach (var copPlayer in NAPI.Pools.GetAllPlayers())
|
||||
{
|
||||
if (copPlayer == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
User copUser = copPlayer.GetUser();
|
||||
if (cop != null && (copUser.FactionId == 1 || copUser.FactionId == 3))
|
||||
{
|
||||
@@ -140,6 +145,7 @@ namespace ReallifeGamemode.Server.Extensions
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static FactionRank GetFactionRank(this User user)
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
|
||||
Reference in New Issue
Block a user