public override void OnComponentUsed(AddonComponent c, Mobile from)
        {
            var l = JollyRogerData.GetList(from);

            if (from is PlayerMobile pm && l != null && l.Shrine != null)
            {
                var title = JollyRogerData.GetShrineTitle(pm);

                if (title > 0)
                {
                    var shrine = JollyRogerData.GetShrine(title);

                    ShrineArray s = null;

                    for (var index = 0; index < l.Shrine.Count; index++)
                    {
                        var y = l.Shrine[index];

                        if (y.Shrine == shrine)
                        {
                            s = y;
                            break;
                        }
                    }

                    if (s != null)
                    {
                        var count = s.MasterDeath;

                        if (count >= 8)
                        {
                            from.CloseGump(typeof(TabardRewardGump));
                            from.SendGump(new TabardRewardGump(shrine));
                        }
                        else if (count < 3)
                        {
                            from.SendLocalizedMessage(1159362); // Thou art virtuous, but have not truly fought for virtue.
                        }
                        else
                        {
                            from.SendLocalizedMessage(1159370,
                                                      shrine.ToString()); // Thou art virtuous, but have not truly fought for ~1_VIRTUE~
                        }
                    }
                    else
                    {
                        from.SendLocalizedMessage(1159361); // Thou art not virtuous...
                    }
                }
                else
                {
                    from.SendLocalizedMessage(1159361); // Thou art not virtuous...
                }
            }
        public override void OnComponentUsed(AddonComponent c, Mobile from)
        {
            var l  = JollyRogerData.GetList(from);
            var pm = from as PlayerMobile;

            if (pm != null && l != null && l.Shrine != null)
            {
                var title = JollyRogerData.GetShrineTitle(pm);

                if (title > 0)
                {
                    var shrine = JollyRogerData.GetShrine(title);
                    var s      = l.Shrine.FirstOrDefault(y => y.Shrine == shrine);

                    if (s != null)
                    {
                        var count = s.MasterDeath;

                        if (count >= 8)
                        {
                            from.CloseGump(typeof(TabardRewardGump));
                            from.SendGump(new TabardRewardGump(shrine));
                        }
                        else if (count < 3)
                        {
                            from.SendLocalizedMessage(1159362); // Thou art virtuous, but have not truly fought for virtue.
                        }
                        else
                        {
                            from.SendLocalizedMessage(1159370,
                                                      shrine.ToString()); // Thou art virtuous, but have not truly fought for ~1_VIRTUE~
                        }
                    }
                    else
                    {
                        from.SendLocalizedMessage(1159361); // Thou art not virtuous...
                    }
                }
                else
                {
                    from.SendLocalizedMessage(1159361); // Thou art not virtuous...
                }
            }
            else
            {
                from.SendLocalizedMessage(1159361); // Thou art not virtuous...
            }
        }