diff --git a/CHANGELOG.md b/CHANGELOG.md index 03588df..3f82c2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +-- 2024.05.18 - v1.0.2 + +fix: Threading problems on hotReload + -- 2024.05.15 - v1.0.1 - fix: Load player properly on reload diff --git a/src-plugin/src/Plugin.cs b/src-plugin/src/Plugin.cs index b7a44b6..86ceb0a 100644 --- a/src-plugin/src/Plugin.cs +++ b/src-plugin/src/Plugin.cs @@ -6,7 +6,7 @@ using K4RPG.Models; using CounterStrikeSharp.API; - [MinimumApiVersion(200)] + [MinimumApiVersion(227)] public sealed partial class Plugin : BasePlugin, IPluginConfig { //** ? PLUGIN GLOBALS */ @@ -46,9 +46,7 @@ public override void Load(bool hotReload) Initialize_DynamicEvents(); if (hotReload) - { - Task.Run(LoadAllPlayersDataAsync); - } + LoadAllPlayersDataAsync(); } public override void Unload(bool hotReload) diff --git a/src-plugin/src/PluginManifest.cs b/src-plugin/src/PluginManifest.cs index 2ee7f8f..b7d955c 100644 --- a/src-plugin/src/PluginManifest.cs +++ b/src-plugin/src/PluginManifest.cs @@ -10,7 +10,7 @@ public sealed partial class Plugin : BasePlugin public override string ModuleAuthor => "K4ryuu"; - public override string ModuleVersion => "1.0.1 " + + public override string ModuleVersion => "1.0.2 " + #if RELEASE "(release)"; #else