/// <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)); }
/// <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)); }