Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public PluginResult(PluginResultType result, object obj, ReflectedPlugin plug)
 {
     Result       = result;
     ReturnObject = obj;
     Plugin       = plug;
 }