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); } }
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); } }
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); } }