Skip to content

Commit

Permalink
Dont enable LR if already enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Sep 19, 2024
1 parent d45bc3e commit f0e5824
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/Jailbreak.LastRequest/LastRequestManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public HookResult OnPlayerDisconnect(EventPlayerDisconnect @event,

private void checkLR() {
Server.RunOnTick(Server.TickCount + 32, () => {
if (IsLREnabled) return;
if (Utilities.GetPlayers().All(p => p.Team != CsTeam.CounterTerrorist))
return;
if (countAlivePrisoners() > CV_PRISONER_TO_LR.Value) return;
Expand Down

0 comments on commit f0e5824

Please sign in to comment.