From 127af98b005d3845f083e160cf1f5e2f06dd4e59 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Fri, 30 Apr 2021 12:37:55 -0500 Subject: [PATCH] fix issue with help and dynamically loaded plugins with commands --- WebfrontCore/Controllers/HomeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebfrontCore/Controllers/HomeController.cs b/WebfrontCore/Controllers/HomeController.cs index 595ac25f8..eec51c49e 100644 --- a/WebfrontCore/Controllers/HomeController.cs +++ b/WebfrontCore/Controllers/HomeController.cs @@ -94,7 +94,7 @@ namespace WebfrontCore.Controllers _type.Assembly != excludedAssembly && typeof(IPlugin).IsAssignableFrom(_type)); return pluginType == null ? _translationLookup["WEBFRONT_HELP_COMMAND_NATIVE"] : pluginType.Name == "ScriptPlugin" ? _translationLookup["WEBFRONT_HELP_SCRIPT_PLUGIN"] : - Manager.Plugins.First(_plugin => _plugin.GetType() == pluginType) + Manager.Plugins.First(_plugin => _plugin.GetType().FullName == pluginType.FullName) .Name; // for now we're just returning the name of the plugin, maybe later we'll include more info }) .Select(_grp => (_grp.Key, _grp.AsEnumerable()));