From 7a98be511dcb44ffbbad9f2e06961d85ad0874cd Mon Sep 17 00:00:00 2001 From: B3none Date: Fri, 26 Apr 2024 20:59:46 +0100 Subject: [PATCH] Added a timer for when to exec the retakes cfg --- RetakesPlugin/RetakesPlugin.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/RetakesPlugin/RetakesPlugin.cs b/RetakesPlugin/RetakesPlugin.cs index e5c0ff6..280ea41 100644 --- a/RetakesPlugin/RetakesPlugin.cs +++ b/RetakesPlugin/RetakesPlugin.cs @@ -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))