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