From: AeonLucid Date: Sun, 25 Oct 2020 21:28:40 +0000 (+0100) Subject: PluginLoader warning instead of exception X-Git-Tag: v1.2.2~78 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=4d87bfb11e2a2104410790611e4d0050f356c8e4;p=rhonda%2Fimpostor.git PluginLoader warning instead of exception --- diff --git a/src/Impostor.Server/Plugins/PluginLoader.cs b/src/Impostor.Server/Plugins/PluginLoader.cs index 404c05c..ef6dae6 100644 --- a/src/Impostor.Server/Plugins/PluginLoader.cs +++ b/src/Impostor.Server/Plugins/PluginLoader.cs @@ -74,7 +74,8 @@ namespace Impostor.Server.Plugins if (pluginStartup.Count > 1) { - throw new PluginLoaderException("A plugin may only define zero or one IPluginStartup implementation."); + Logger.Warning("A plugin may only define zero or one IPluginStartup implementation ({0}).", assembly); + continue; } // Find plugin. @@ -88,7 +89,8 @@ namespace Impostor.Server.Plugins if (plugin.Count != 1) { - throw new PluginLoaderException("A plugin must define exactly one IPlugin or PluginBase implementation."); + Logger.Warning("A plugin must define exactly one IPlugin or PluginBase implementation ({0}).", assembly); + continue; } // Save plugin.