mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Release 17 updates
This commit is contained in:
parent
38dededb14
commit
4a54288072
11 changed files with 306 additions and 19 deletions
|
|
@ -198,6 +198,18 @@ namespace ServerManagerTool.Plugin.Common
|
|||
Plugins.Add(new PluginItem { Plugin = plugin, PluginFile = pluginFile, PluginType = nameof(IAlertPlugin) });
|
||||
}
|
||||
}
|
||||
else if (type.GetInterface(typeof(IPlugin).Name) != null)
|
||||
{
|
||||
var plugin = assembly.CreateInstance(type.FullName) as IPlugin;
|
||||
if (plugin != null && plugin.Enabled)
|
||||
{
|
||||
if (type.GetInterface(typeof(IBeta).Name) != null)
|
||||
((IBeta)plugin).BetaEnabled = BetaEnabled;
|
||||
plugin.Initialize();
|
||||
|
||||
Plugins.Add(new PluginItem { Plugin = plugin, PluginFile = pluginFile, PluginType = nameof(IPlugin) });
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue