Ejemplo n.º 1
0
        /// <summary> Removes the given player from player's tab list (if their client supports it). </summary>
        public static void Remove(Player dst, Entity entity)
        {
            if (!dst.hasExtList)
            {
                return;
            }

            OnTabListEntryRemovedEvent.Call(entity, dst);
            byte id = dst == entity ? Entities.SelfID : entity.EntityID;

            dst.Send(Packet.ExtRemovePlayerName(id));
        }
Ejemplo n.º 2
0
        /// <summary> Removes the given player from player's tab list (if their client supports it). </summary>
        public static void Remove(Player dst, Entity entity)
        {
            if (!dst.hasExtList)
            {
                return;
            }

            OnTabListEntryRemovedEvent.Call(entity, dst);
            byte id = dst == entity ? Entities.SelfID : entity.EntityID;

            dst.Session.SendRemoveTabEntry(id);
        }