Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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);
                }
            }
        }