Exemplo n.º 1
0
        void SendCpeExtensions()
        {
            Send(Packet.ExtInfo(22), true);

            Send(Packet.ExtEntry(CpeExt.EnvMapAppearance, 1), true); // fix for classicube client, doesn't reply if only send EnvMapAppearance with version 2
            Send(Packet.ExtEntry(CpeExt.ClickDistance, 1), true);
            Send(Packet.ExtEntry(CpeExt.CustomBlocks, 1), true);

            Send(Packet.ExtEntry(CpeExt.HeldBlock, 1), true);
            Send(Packet.ExtEntry(CpeExt.TextHotkey, 1), true);
            Send(Packet.ExtEntry(CpeExt.EnvColors, 1), true);

            Send(Packet.ExtEntry(CpeExt.SelectionCuboid, 1), true);
            Send(Packet.ExtEntry(CpeExt.BlockPermissions, 1), true);
            Send(Packet.ExtEntry(CpeExt.ChangeModel, 1), true);

            Send(Packet.ExtEntry(CpeExt.EnvMapAppearance, 2), true);
            Send(Packet.ExtEntry(CpeExt.EnvWeatherType, 1), true);
            Send(Packet.ExtEntry(CpeExt.HackControl, 1), true);

            Send(Packet.ExtEntry(CpeExt.EmoteFix, 1), true);
            Send(Packet.ExtEntry(CpeExt.FullCP437, 1), true);
            Send(Packet.ExtEntry(CpeExt.LongerMessages, 1), true);

            Send(Packet.ExtEntry(CpeExt.BlockDefinitions, 1), true);
            Send(Packet.ExtEntry(CpeExt.BlockDefinitionsExt, 2), true);
            Send(Packet.ExtEntry(CpeExt.TextColors, 1), true);

            Send(Packet.ExtEntry(CpeExt.BulkBlockUpdate, 1), true);
            Send(Packet.ExtEntry(CpeExt.MessageTypes, 1), true);
            Send(Packet.ExtEntry(CpeExt.ExtPlayerList, 2), true);

            Send(Packet.ExtEntry(CpeExt.EnvMapAspect, 1), true);
            Send(Packet.ExtEntry(CpeExt.PlayerClick, 1), true);
        }
Exemplo n.º 2
0
        void SendCpeExtensions()
        {
            Send(Packet.ExtInfo((byte)(extensions.Length + 1)));
            // fix for classicube client, doesn't reply if only send EnvMapAppearance with version 2
            Send(Packet.ExtEntry(CpeExt.EnvMapAppearance, 1));

            foreach (ExtEntry ext in extensions)
            {
                Send(Packet.ExtEntry(ext.ExtName, ext.ServerExtVersion));
            }
        }
Exemplo n.º 3
0
        void SendCpeExtensions()
        {
            extensions = CpeExtension.GetAllEnabled();
            Send(Packet.ExtInfo((byte)(extensions.Length + 1)));
            // fix for old classicube java client, doesn't reply if only send EnvMapAppearance with version 2
            Send(Packet.ExtEntry(CpeExt.EnvMapAppearance, 1));

            foreach (CpeExt ext in extensions)
            {
                Send(Packet.ExtEntry(ext.Name, ext.ServerVersion));
            }
        }