fix issue with tempban not displaying properly
This commit is contained in:
parent
4ace476242
commit
bd6c0dd5be
@ -66,8 +66,13 @@ OnPlayerConnect()
|
||||
|
||||
player thread OnPlayerSpawned();
|
||||
player thread PlayerTrackingOnInterval();
|
||||
|
||||
// only toggle if it's enabled
|
||||
if ( IsDefined( level.nightModeEnabled ) && level.nightModeEnabled )
|
||||
{
|
||||
player ToggleNightMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
OnPlayerSpawned()
|
||||
|
@ -116,7 +116,7 @@ namespace SharedLibraryCore.Services
|
||||
}
|
||||
|
||||
private static readonly EFPenalty.PenaltyType[] LinkedPenalties =
|
||||
{ EFPenalty.PenaltyType.Ban, EFPenalty.PenaltyType.Flag };
|
||||
{ EFPenalty.PenaltyType.Ban, EFPenalty.PenaltyType.Flag, EFPenalty.PenaltyType.TempBan };
|
||||
|
||||
private static readonly Expression<Func<EFPenalty, bool>> Filter = p =>
|
||||
LinkedPenalties.Contains(p.Type) && p.Active && (p.Expires == null || p.Expires > DateTime.UtcNow);
|
||||
|
Loading…
Reference in New Issue
Block a user