示例#1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.AccessLevel == AccessLevel.Player)
            {
                from.SendMessage("That is for Staff use only!");
                return;
            }

            AddOnEditor_Att addoneditor = (AddOnEditor_Att)XmlAttach.FindAttachment(from, typeof(AddOnEditor_Att));

            if (addoneditor == null)
            {
                XmlAttach.AttachTo(from, new AddOnEditor_Att());
            }

            addoneditor.CallCommand(from);

            base.OnDoubleClick(from);
        }