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); }
public void HandlePopupCommand(CommandEventArgs e) { PlayerMobile pm = e.Mobile as PlayerMobile; if (pm != null && !pm.Deleted) { MOTD.SendPopUpTo(pm); } }