コード例 #1
0
 internal static void Despawn(Player dst, PlayerBot b)
 {
     OnEntityDespawnedEvent.Call(b, dst);
     dst.Send(Packet.RemoveEntity(b.id));
     if (Server.Config.TablistBots)
     {
         TabList.Remove(dst, b);
     }
 }
コード例 #2
0
ファイル: Entities.cs プロジェクト: IceCruelStuff/MCGalaxy
        public static void Despawn(Player dst, PlayerBot b)
        {
            OnEntityDespawnedEvent.Call(b, dst);
            dst.Session.SendRemoveEntity(b.id);

            if (Server.Config.TablistBots)
            {
                TabList.Remove(dst, b);
            }
        }
コード例 #3
0
        internal static void Despawn(Player dst, Player other)
        {
            OnEntityDespawnedEvent.Call(other, dst);
            byte id = other == dst ? SelfID : other.id;

            dst.Send(Packet.RemoveEntity(id));
            if (!Server.Config.TablistGlobal)
            {
                TabList.Remove(dst, other);
            }
        }