Skip to content

Commit

Permalink
Check warmup period before restarting game / checking if round is ended
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none committed Jan 11, 2024
1 parent 9fad413 commit 437eecb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Modules/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ public static void RemoveHelmetAndHeavyArmour(CCSPlayerController player)

public static void RestartGame()
{
CheckRoundDone();
if (!GetGameRules().WarmupPeriod)
{
CheckRoundDone();
}

Server.ExecuteCommand("mp_restartgame 1");
}

Expand Down
2 changes: 1 addition & 1 deletion RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace RetakesPlugin;
[MinimumApiVersion(131)]
public class RetakesPlugin : BasePlugin
{
private const string Version = "1.2.3";
private const string Version = "1.2.4";

#region Plugin info
public override string ModuleName => "Retakes Plugin";
Expand Down

0 comments on commit 437eecb

Please sign in to comment.