Skip to content

Commit

Permalink
Added a timer for when to exec the retakes cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none committed Apr 26, 2024
1 parent a56b400 commit 7a98be5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RetakesPlugin/RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,11 @@ private void OnMapStart(string mapName)

ResetState();

// Execute the retakes configuration.
Helpers.ExecuteRetakesConfiguration(ModuleDirectory);
AddTimer(1.0f, () =>
{
// Execute the retakes configuration.
Helpers.ExecuteRetakesConfiguration(ModuleDirectory);
});

// If we don't have a map config loaded, load it.
if (!MapConfig.IsLoaded(_mapConfig, Server.MapName))
Expand Down

0 comments on commit 7a98be5

Please sign in to comment.