Esempio n. 1
0
        /// <summary>
        /// Calls <code>return Execute(new CmdTrigger(text));</code>.
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        public static bool Execute(string text)
        {
            var trigger = new DefaultCmdTrigger(text);

            if (!trigger.InitTrigger())
            {
                return(true);
            }
            return(Instance.Execute(trigger));
        }
Esempio n. 2
0
        /// <summary>
        /// Calls <code>return Execute(new CmdTrigger(text));</code>.
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        public static bool Execute(string text)
        {
            DefaultCmdTrigger trigger = new DefaultCmdTrigger(text);

            if (!trigger.InitTrigger())
            {
                return(true);
            }
            return(RealmCommandHandler.Instance.Execute((CmdTrigger <RealmServerCmdArgs>)trigger));
        }