Skip to content

Commit

Permalink
Merge pull request #117 from B3none/fix-config-loading
Browse files Browse the repository at this point in the history
Added a timer for when to exec the retakes cfg
  • Loading branch information
B3none authored Apr 26, 2024
2 parents a56b400 + e69899f commit 1a4fdea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions RetakesPlugin/RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace RetakesPlugin;
[MinimumApiVersion(201)]
public class RetakesPlugin : BasePlugin
{
private const string Version = "2.0.2";
private const string Version = "2.0.3";

#region Plugin info
public override string ModuleName => "Retakes Plugin";
Expand Down 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 1a4fdea

Please sign in to comment.