public Protocol16Handler(TcpClient Client, int ProtocolVersion, IMinecraftComHandler Handler)
        {
            ConsoleIO.SetAutoCompleteEngine(this);
            if (protocolversion >= 72)
            {
                ChatParser.InitTranslations();
            }
            this.c = Client;
            this.protocolversion = ProtocolVersion;
            this.handler         = Handler;

            if (Handler.GetTerrainEnabled())
            {
                Translations.WriteLineFormatted("extra.terrainandmovement_disabled");
                Handler.SetTerrainEnabled(false);
            }

            if (handler.GetInventoryEnabled())
            {
                Translations.WriteLineFormatted("extra.inventory_disabled");
                handler.SetInventoryEnabled(false);
            }

            if (handler.GetEntityHandlingEnabled())
            {
                Translations.WriteLineFormatted("extra.entity_disabled");
                handler.SetEntityHandlingEnabled(false);
            }
        }
        public Protocol16Handler(TcpClient Client, int ProtocolVersion, IMinecraftComHandler Handler)
        {
            ConsoleIO.SetAutoCompleteEngine(this);
            if (protocolversion >= 72)
            {
                ChatParser.InitTranslations();
            }
            this.c = Client;
            this.protocolversion = ProtocolVersion;
            this.handler         = Handler;

            if (Handler.GetTerrainEnabled())
            {
                ConsoleIO.WriteLineFormatted("§8Terrain & Movements currently not handled for that MC version.");
                Handler.SetTerrainEnabled(false);
            }

            if (handler.GetInventoryEnabled())
            {
                ConsoleIO.WriteLineFormatted("§8Inventories are currently not handled for that MC version.");
                handler.SetInventoryEnabled(false);
            }

            if (handler.GetEntityHandlingEnabled())
            {
                ConsoleIO.WriteLineFormatted("§8Entities are currently not handled for that MC version.");
                handler.SetEntityHandlingEnabled(false);
            }
        }
Пример #3
0
        public Protocol16Handler(TcpClient Client, int ProtocolVersion, IMinecraftComHandler Handler)
        {
            ConsoleIO.SetAutoCompleteEngine(this);
            if (protocolversion >= 72)
            {
                ChatParser.InitTranslations();
            }
            this.c = Client;
            this.protocolversion = ProtocolVersion;
            this.handler         = Handler;

            if (Handler.GetTerrainEnabled())
            {
                ConsoleIO.WriteLineFormatted("§e[错误]§c世界交互 暂不支持此版本");
                Handler.SetTerrainEnabled(false);
            }

            if (handler.GetInventoryEnabled())
            {
                ConsoleIO.WriteLineFormatted("§e[错误]§c物品栏交互暂不支持此版本");
                handler.SetInventoryEnabled(false);
            }

            if (handler.GetEntityHandlingEnabled())
            {
                ConsoleIO.WriteLineFormatted("§e[错误]§c实体交互暂不支持此版本");
                handler.SetEntityHandlingEnabled(false);
            }
        }