Example #1
0
        protected override void CompileList(List <MOTDMessage> list)
        {
            list.Clear();

            list.AddRange(
                MOTD.GetSortedMessages().Where(message => message != null && (message.Published || User.AccessLevel >= MOTD.Access)));

            base.CompileList(list);
        }
Example #2
0
        public void HandlePopupCommand(CommandEventArgs e)
        {
            PlayerMobile pm = e.Mobile as PlayerMobile;

            if (pm != null && !pm.Deleted)
            {
                MOTD.SendPopUpTo(pm);
            }
        }