diff --git a/JKMP.Core/Plugins/PluginManager.cs b/JKMP.Core/Plugins/PluginManager.cs index b48edd0..ce402b6 100644 --- a/JKMP.Core/Plugins/PluginManager.cs +++ b/JKMP.Core/Plugins/PluginManager.cs @@ -127,7 +127,7 @@ internal void LoadPlugins() pluginContainer.Plugin.Configs = new PluginConfigs(pluginContainer.Plugin); pluginContainer.Plugin.Configs.JsonSerializerSettings = CreateDefaultJsonSerializerSettings(); - loadedPlugins[pluginDirectory.ToLowerInvariant()] = pluginContainer; + loadedPlugins[Path.GetFileName(pluginDirectory).ToLowerInvariant()] = pluginContainer; Logger.Verbose("Plugin loaded"); }