From a3cf6b0a70321a761ba8be5971d7a72ffeb5654d Mon Sep 17 00:00:00 2001 From: karashiiro <49822414+karashiiro@users.noreply.github.com> Date: Fri, 12 Jun 2020 21:33:11 -0700 Subject: [PATCH] whoops, add public and instance to the getmethods --- PluginCommandManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluginCommandManager.cs b/PluginCommandManager.cs index aef1279..02c4d09 100644 --- a/PluginCommandManager.cs +++ b/PluginCommandManager.cs @@ -21,7 +21,7 @@ public PluginCommandManager(THost host, DalamudPluginInterface pluginInterface) this.pluginInterface = pluginInterface; this.host = host; - this.pluginCommands = host.GetType().GetMethods(BindingFlags.NonPublic | BindingFlags.Static) + this.pluginCommands = host.GetType().GetMethods(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance) .Where(method => method.GetCustomAttribute() != null) .SelectMany(GetCommandInfoTuple) .ToArray();