Skip to content

Commit 1a4fdea

Browse files
authored
Merge pull request #117 from B3none/fix-config-loading
Added a timer for when to exec the retakes cfg
2 parents a56b400 + e69899f commit 1a4fdea

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

RetakesPlugin/RetakesPlugin.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace RetakesPlugin;
2020
[MinimumApiVersion(201)]
2121
public class RetakesPlugin : BasePlugin
2222
{
23-
private const string Version = "2.0.2";
23+
private const string Version = "2.0.3";
2424

2525
#region Plugin info
2626
public override string ModuleName => "Retakes Plugin";
@@ -451,8 +451,11 @@ private void OnMapStart(string mapName)
451451

452452
ResetState();
453453

454-
// Execute the retakes configuration.
455-
Helpers.ExecuteRetakesConfiguration(ModuleDirectory);
454+
AddTimer(1.0f, () =>
455+
{
456+
// Execute the retakes configuration.
457+
Helpers.ExecuteRetakesConfiguration(ModuleDirectory);
458+
});
456459

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

0 commit comments

Comments
 (0)