public CommandRegister Command(ReflectedPlugin plugin) { plugin.Command.Restriction = plugin.Command.Restriction ?? _restriction; plugin.Command.PluginSet = plugin.Command.PluginSet ?? _pluginset; plugin.Command.Platform = plugin.Command.Platform ?? _platform; _pluginManager.AddPlugin(plugin); return(this); }
public PluginResult(PluginResultType result, object obj, ReflectedPlugin plug) { Result = result; ReturnObject = obj; Plugin = plug; }