Skip to content

Commit 47339a3

Browse files
authored
Merge pull request #188 from wiruwiru/master
fix: allow team joining during warmup (closes #157)
2 parents 9c71307 + f502317 commit 47339a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RetakesPlugin/Modules/Managers/QueueManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public HookResult PlayerJoinedTeam(CCSPlayerController player, CsTeam fromTeam,
7272
return HookResult.Continue;
7373
}
7474

75-
if (!_shouldPreventTeamChangesMidRound)
75+
if (!_shouldPreventTeamChangesMidRound || Helpers.GetGameRules().WarmupPeriod)
7676
{
77-
Helpers.Debug($"[{player.PlayerName}] Preventing team changes mid round is disabled, allowing team change.");
77+
Helpers.Debug($"[{player.PlayerName}] Preventing team changes mid round is disabled or warmup is active, allowing team change.");
7878
return HookResult.Continue;
7979
}
8080

RetakesPlugin/RetakesPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace RetakesPlugin;
2020
[MinimumApiVersion(220)]
2121
public class RetakesPlugin : BasePlugin
2222
{
23-
private const string Version = "2.1.0";
23+
private const string Version = "2.1.1";
2424

2525
#region Plugin info
2626
public override string ModuleName => "Retakes Plugin";

0 commit comments

Comments
 (0)