Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Assign LoadContext on plugin load (Fixes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Mar 18, 2022
1 parent 4f0074b commit 1cf9f39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BrackeysBot/Plugins/SimplePluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public IPlugin LoadPlugin(string name)
if (Activator.CreateInstance(pluginType) is not MonoPlugin instance)
throw new InvalidPluginException(name, ExceptionMessages.NoDerivationOfPluginClass);

instance.LoadContext = context;
instance.PluginInfo = pluginInfo;
instance.PluginManager = this;
instance.Logger = LogManager.GetLogger(pluginInfo.Name);
Expand Down

0 comments on commit 1cf9f39

Please sign in to comment.