public bool Run(SptWrapper wrapper, string args) { string[] argSplit = args.Split(' '); string moduleName = argSplit[0]; string typeName = argSplit[1]; if (argSplit.Length != 0) { wrapper.DbgOutput("Usage: !name2ee <module> <type>"); } return(true); }
public bool Run(SptWrapper wrapper, string args) { string[] argSplit = args.Split(' '); string moduleName = argSplit[0]; string typeName = argSplit[1]; if (argSplit.Length != 0) { wrapper.DbgOutput("Usage: !name2ee <module> <type>"); } return true; }
private static bool RunMethod <T>(SptWrapper wrapper, string args) where T : IPluginMethod, new() { var plugin = new T(); using (wrapper) { try { return(plugin.Run(wrapper, args)); } catch (Exception ex) { wrapper.DbgOutput(ex.ToString()); return(false); } } }