1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix issue with plugin registration

This commit is contained in:
RaidMax
2022-02-07 22:02:50 -06:00
parent 53f3ecc463
commit 8989b5b987
5 changed files with 26 additions and 12 deletions

View File

@ -311,7 +311,10 @@ namespace IW4MAdmin.Application
}
// register any script plugins
serviceCollection.AddSingleton(sp => pluginImporter.DiscoverScriptPlugins(sp));
foreach (var func in pluginImporter.DiscoverScriptPlugins())
{
serviceCollection.AddSingleton(sp => func(sp));
}
// register any eventable types
foreach (var assemblyType in typeof(Program).Assembly.GetTypes()