예제 #1
0
        public void RemoveGMs()
        {
            List <string> removePlayers = new List <string>();

            foreach (var player in Players)
            {
                var headItem  = player.Value.Gear.GetItem(ItemSlot.Head);
                var chestItem = player.Value.Gear.GetItem(ItemSlot.Chest);
                var feetItem  = player.Value.Gear.GetItem(ItemSlot.Feet);
                if ((headItem != null && headItem.ItemID == 12064) || //GM Hood
                    (chestItem != null && chestItem.ItemID == 2586) || //GM Chest
                    (feetItem != null && feetItem.ItemID == 11508)) //GM Feet
                {
                    removePlayers.Add(player.Key);
                }
            }
            foreach (var player in removePlayers)
            {
                Players.Remove(player);
                PlayersHistory.Remove(player);
            }
        }
예제 #2
0
 public void RemoveUnknowns()
 {
     Players.Remove("Unknown");
     PlayersHistory.Remove("Unknown");
 }