{"_id":"mineflayer-viaproxy","_rev":"48-ae0257cbc4be9eb88fe61ca2844568ff","name":"mineflayer-viaproxy","dist-tags":{"latest":"0.7.9"},"versions":{"0.7.0":{"name":"mineflayer-viaproxy","version":"0.7.0","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.0","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"homepage":"https://github.com/GenerelSchwerz/mineflayer-viaproxy#readme","bugs":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy/issues"},"dist":{"shasum":"117b22a4bb1588c3e8d6109da6301e294af2f465","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.0.tgz","fileCount":36,"integrity":"sha512-iwWqoOhuy+RJWPZ3svT0lN2fH+EC9dtR8qgYFyUTNh+vrcx54p9o91wttD/4vayenH8HX9mVZG9FUYTehoru7g==","signatures":[{"sig":"MEYCIQCWZ2qaKpQ6rSg2WTNxyr3XRA2KiEG8Jlv1D2oKiLiTdAIhAMC+KfQHWr703Ewtp4/sSld55a+ThFIIXmUpgezwx6s1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118768},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"1cc4dcb7b936089377e86965f0e884d716f5e9cb","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"git+https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"_npmVersion":"11.2.0","description":"ViaProxy support for mineflayer.","directories":{},"_nodeVersion":"22.13.1","dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:./"},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.0_1766420346992_0.05513950505686438","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"mineflayer-viaproxy","version":"0.7.1","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.1","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"dist":{"shasum":"8c680b693f8b1db5f6b76467cd6dc9784f32d3db","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.1.tgz","fileCount":41,"integrity":"sha512-EG3hdiqO/z/eryT6i3VaJjPhG4eEA18FoMbCw2tISUa9khHFy4WD7J8SJTHBXMFBOBgkgpTiXVKxPC3VdmUKng==","signatures":[{"sig":"MEYCIQCvWLfZibEWsdIBYRjqDgcNsnEDWyfiDrfS2XvZdbx8VQIhALnZAu15SdmEbyd3mgyFJz8q3HbuvI928XBZtJFxuy2a","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119253},"main":"dist/index.js","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"description":"ViaProxy support for mineflayer.","directories":{},"dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:."},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.1_1766421758330_0.9475949078051011","host":"s3://npm-registry-packages-npm-production"}},"0.7.3":{"name":"mineflayer-viaproxy","version":"0.7.3","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.3","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"homepage":"https://github.com/GenerelSchwerz/mineflayer-viaproxy#readme","bugs":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy/issues"},"dist":{"shasum":"2968d89477d1b54440b1e57cbf912da120383fcf","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.3.tgz","fileCount":36,"integrity":"sha512-knZyjQKJGJ9rErmyb/mX0V8Qu96gHNIYFhtdSvbeRgPjkssm3i5DSDrlgrEBExGlNyDrhGu1TmRPGoWJa2TNEQ==","signatures":[{"sig":"MEUCIQCUZoALCBd5rZ/SJ6fek2fmZU0PyPkjz8uVDQYRavpzEwIgWWPgCDb5omWh2rOfCsXXbzHMQW+ZQ3RO+ZPpi84oGho=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119978},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"a78a9b730cf15e9fc8b083da287b6b9fb98b78ad","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"git+https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"_npmVersion":"11.2.0","description":"ViaProxy support for mineflayer.","directories":{},"_nodeVersion":"22.13.1","dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:./"},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.3_1766816314034_0.8064349201750973","host":"s3://npm-registry-packages-npm-production"}},"0.7.4":{"name":"mineflayer-viaproxy","version":"0.7.4","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.4","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"dist":{"shasum":"9e3d9fdf0e88e1d76c203d7528eeab5a85b1ade4","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.4.tgz","fileCount":42,"integrity":"sha512-02KZdpQjY61ox++0jmILEp8NMQnWREhaT7MROyNVp6Du/A9bCNxg10Rnls9/2EEWHKeY3ihf4u+Vy0N53O1Nbw==","signatures":[{"sig":"MEYCIQCcKdYXRmGiWQjEg9Jh/gJapeQWb/eqpNnAKKYppKX2MQIhAISxa2rBZpNsg+5jdxmbsHGAqTt7v7Fjc7U99qwlyHRF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":201438},"main":"dist/index.js","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"description":"ViaProxy support for mineflayer.","directories":{},"dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:."},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.4_1767489321661_0.488623821513851","host":"s3://npm-registry-packages-npm-production"}},"0.7.5":{"name":"mineflayer-viaproxy","version":"0.7.5","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.5","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"dist":{"shasum":"d727a5f3fd88781b7f3db140426f856ade266d9e","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.5.tgz","fileCount":42,"integrity":"sha512-eCaG/wyTYbAtA2zua+7qbXcqVqRjjBCHpiw3VSDm7j/j+1MRbwnfHNJI69VyF4Nk6e7CjHicO3MijmtQ4dz3qg==","signatures":[{"sig":"MEUCIHNuXPibCR9G+QGrTXZpP+3ou+IdLtVggKTjIx770oN2AiEAtGLKJswdhDI+y2pzudsUqp4n8J7gdpaFAJWHT0CuH0I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":203126},"main":"dist/index.js","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"description":"ViaProxy support for mineflayer.","directories":{},"dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:."},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.5_1767491121631_0.5568029968283517","host":"s3://npm-registry-packages-npm-production"}},"0.7.6":{"name":"mineflayer-viaproxy","version":"0.7.6","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.6","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"dist":{"shasum":"0e1e628b0f82c7a885cd8b22572536b50a751939","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.6.tgz","fileCount":42,"integrity":"sha512-1qYPAMNF/UjFedTxa0hKB3nLL9Z0meC5+/bWw2JikUNgiFubM+5WeHr9rPTo/KkLG73HVvJeIjRRO7xwXSRLNA==","signatures":[{"sig":"MEYCIQCcMUEEeVWzr1aFIgjCN9T6TYrY8z3eEQSNiprqLYqhbQIhAKf97Af8oX6IanO09vac+O1SAGANVgtI2R3S7H9kUAX5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":203740},"main":"dist/index.js","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"description":"ViaProxy support for mineflayer.","directories":{},"dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:."},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.6_1767491447595_0.0965103180774145","host":"s3://npm-registry-packages-npm-production"}},"0.7.7":{"name":"mineflayer-viaproxy","version":"0.7.7","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.7","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"dist":{"shasum":"e99b5a28b183be03d372fe288dadfc1899859017","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.7.tgz","fileCount":42,"integrity":"sha512-0Nyfm0oy4zADUiLO9/dcMgfmeBqrqZBoe/+sz/ejp/pEUpdCwq040Mk+oCuRsqRBx3PYACxMAoJQdjQl023jTw==","signatures":[{"sig":"MEUCIE4J2ljN4Z5BqaxuDMyf9BQvD7sjFvpi9CvZr+fnxIQGAiEAstOdMJQpUbEXjXq/aV3comESsedyfoaxkGV3LqfSW08=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":205166},"main":"dist/index.js","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"description":"ViaProxy support for mineflayer.","directories":{},"dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:."},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.7_1767493710653_0.22485977584218886","host":"s3://npm-registry-packages-npm-production"}},"0.7.8":{"name":"mineflayer-viaproxy","version":"0.7.8","author":{"name":"GenerelSchwerz"},"license":"MIT","_id":"mineflayer-viaproxy@0.7.8","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"dist":{"shasum":"08456bffa498e3c11ffc115145e443ea178609d7","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.8.tgz","fileCount":42,"integrity":"sha512-3M+CG8GF2mkseZIbI8t7uvP1td30MJ00sQosEKrLHxC7yXjAMp36fCw1IL26e3QyxQQYIKlEWMASirnNr4LO3w==","signatures":[{"sig":"MEQCIFXAJeJCw7ptF3tgWB9xCKED+j+aC5QTTW4luk2nI22vAiBPkQVO4Lu+lbncHSC8/+0cJsYOrhSpK9Q0BIzIESUMrg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":205165},"main":"dist/index.js","scripts":{"build":"tsc","prepublish":"npm run build"},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"repository":{"url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git","type":"git"},"description":"ViaProxy support for mineflayer.","directories":{},"dependencies":{"uuid":"^13.0.0","debug":"^4.4.1","js-yaml":"^4.1.0","mineflayer":"^4.29.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","bedrock-protocol":"^3.45.0","minecraft-protocol":"^1.57.0","@types/jsonwebtoken":"^9.0.10"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:."},"_npmOperationalInternal":{"tmp":"tmp/mineflayer-viaproxy_0.7.8_1767540748497_0.841880163250077","host":"s3://npm-registry-packages-npm-production"}},"0.7.9":{"name":"mineflayer-viaproxy","version":"0.7.9","description":"ViaProxy support for mineflayer.","main":"dist/index.js","author":{"name":"GenerelSchwerz"},"license":"MIT","repository":{"type":"git","url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git"},"devDependencies":{"@types/js-yaml":"^4.0.9","mineflayer-viaproxy":"file:.","typescript":"^5.8.3"},"dependencies":{"@types/jsonwebtoken":"^9.0.10","bedrock-protocol":"^3.45.0","debug":"^4.4.1","js-yaml":"^4.1.0","jsonwebtoken":"^9.0.3","minecraft-data":"^3.89.0","minecraft-protocol":"^1.57.0","mineflayer":"^4.29.0","uuid":"^13.0.0"},"scripts":{"build":"tsc","prepublish":"npm run build"},"_id":"mineflayer-viaproxy@0.7.9","dist":{"shasum":"914cc4e55d10f8a1d0c1846015b1956218729d26","integrity":"sha512-CBzJWuEnIlaedAUVspCwHDZk0KSJFQuXc9mLk2mLS+FqLp/zyKYlpViEavX4WYeMHRROAjyrKUNrLUU5vnBurA==","tarball":"https://registry.npmjs.org/mineflayer-viaproxy/-/mineflayer-viaproxy-0.7.9.tgz","fileCount":36,"unpackedSize":207925,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD2HdVbA4zKOB15lt2S7TMQsuE5LNh5L1WjsbiA/mMBZAIhAL8HEQErfmTDlAbrpUFmjaFDpF5uGb1SoE8RdJO40/8m"}]},"_npmUser":{"name":"generel_schwerz","email":"generelschwerz@gmail.com"},"directories":{},"maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mineflayer-viaproxy_0.7.9_1771712869489_0.9074305160048763"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-22T16:19:06.992Z","modified":"2026-02-21T22:27:49.738Z","0.0.2":"2024-09-12T15:12:37.012Z","0.0.3":"2024-09-12T17:58:00.092Z","0.0.4":"2024-09-12T18:13:38.228Z","0.0.5":"2024-09-12T22:49:32.426Z","0.0.6":"2024-09-13T00:24:24.014Z","0.0.7":"2024-09-13T13:55:33.809Z","0.0.8":"2024-09-13T13:57:45.733Z","0.0.9":"2024-09-13T17:56:50.895Z","0.0.10":"2024-09-13T18:33:39.141Z","0.0.11":"2024-09-13T19:50:00.731Z","0.0.12":"2024-09-19T21:33:15.889Z","0.0.13":"2024-09-19T21:44:59.952Z","0.0.14":"2024-09-20T01:22:32.209Z","0.0.15":"2024-09-20T01:24:07.011Z","0.0.16":"2024-09-20T01:24:53.491Z","0.0.17":"2024-09-20T01:35:18.638Z","0.0.18":"2024-09-20T01:45:19.973Z","0.0.19":"2024-09-20T02:27:36.687Z","0.0.20":"2024-09-20T03:01:06.628Z","0.0.21":"2024-09-20T14:40:57.927Z","0.0.22":"2024-09-20T16:11:06.679Z","0.0.23":"2024-09-20T17:26:57.085Z","0.1.0":"2024-09-20T18:20:28.014Z","0.1.1":"2024-09-20T18:31:21.238Z","0.2.0":"2024-09-24T18:03:32.127Z","0.2.1":"2024-09-25T03:18:03.050Z","0.2.2":"2024-09-26T14:21:31.684Z","0.3.0":"2024-09-27T17:53:04.148Z","0.3.1":"2024-09-27T21:21:20.576Z","0.3.2":"2024-10-06T01:18:50.080Z","0.3.3":"2024-10-06T01:21:43.447Z","0.3.4":"2024-10-10T17:16:31.057Z","0.3.5":"2024-10-16T17:00:11.814Z","0.3.6":"2024-10-24T14:45:33.398Z","0.4.0":"2025-05-30T23:34:58.493Z","0.4.1":"2025-10-14T23:17:32.023Z","0.5.0":"2025-10-14T23:23:16.688Z","0.6.0":"2025-10-20T19:33:09.463Z","0.7.0":"2025-12-22T16:19:07.148Z","0.7.1":"2025-12-22T16:42:38.473Z","0.7.3":"2025-12-27T06:18:34.168Z","0.7.4":"2026-01-04T01:15:21.814Z","0.7.5":"2026-01-04T01:45:21.800Z","0.7.6":"2026-01-04T01:50:47.742Z","0.7.7":"2026-01-04T02:28:30.813Z","0.7.8":"2026-01-04T15:32:28.657Z","0.7.9":"2026-02-21T22:27:49.639Z"},"author":{"name":"GenerelSchwerz"},"license":"MIT","repository":{"type":"git","url":"https://github.com/GenerelSchwerz/mineflayer-viaproxy.git"},"description":"ViaProxy support for mineflayer.","maintainers":[{"name":"generel_schwerz","email":"generelschwerz@gmail.com"}],"readme":"# mineflayer-viaproxy\n\n[![NPM version](https://img.shields.io/npm/v/mineflayer-viaproxy.svg)](http://npmjs.com/package/mineflayer-viaproxy)\n\nA mineflayer plugin that allows you to connect to a server through a ViaVersion proxy.\n\nWhy? Because I'm tired of people asking for version updates.\n\nIf you have issues, join [here](https://discord.gg/g3w4G88y) for support.\nAlternatively, [here](https://discord.gg/prismarinejs-413438066984747026) for general mineflayer support.\n\n\n### Prerequisites\n* Node.js v16 or higher\n* Java Runtime Environment (JRE) installed and accessible via command line, preferably version 17 or higher.\n\n### TODOS\n\n* [x] Support bedrock versions\n* [x] Support adding accounts to ViaProxy gracefully.\n* [x] Make fix for prismarine-registry more robust (see patches)\n* [ ] Add support for more ViaVersion options\n* [x] Add support for more ViaProxy options\n* [x] Support Python\n\n## Installation\n\n```bash\nnpm install mineflayer-viaproxy\n```\n\n## Usage\n\n\n### Basic usage is simple. Just use `createBot` from this package instead of `mineflayer.createBot`.\n\nNote! `createBot` is now asynchronous and must be awaited. This is because it needs to set up the ViaProxy before the bot can connect.\n\nAdditionally: the username must now STRICTLY match the in-game username of the account you want to use. This is because ViaProxy needs to authenticate with Mojang/Microsoft using that account's credentials, and the bot needs to use that account's credentials to connect to the server through ViaProxy.\n\n```js\nconst { createBot } = require('mineflayer-viaproxy')\n\n// only difference is that this must be awaited now.\nconst bot = await createBot({...})\n\n// if you want to pass viaProxy options, it'd be like so:\n\nconst orgBotOpts = {...}\nconst viaProxyOpts = {...}\n\n// same object. \nconst bot = await createBot({...orgBotOpts, ...viaProxyOpts});\n```\n\nMore examples can be found in the `examples/` folder.\n\n## Debugging\n\nThis package uses the [debug](https://www.npmjs.com/package/debug) library for logging. To enable debug output, set the `DEBUG` environment variable to include `mineflayer-viaproxy`.\n\n**Examples:**\n\nEnable all mineflayer-viaproxy logs:\n```bash\n# On Windows (PowerShell)\n$env:DEBUG = \"mineflayer-viaproxy:*\"; node your-script.js\n\n# On Windows (Command Prompt)\nset DEBUG=mineflayer-viaproxy:* && node your-script.js\n\n# On macOS/Linux\nDEBUG=mineflayer-viaproxy:* node your-script.js\n```\n\nEnable specific module logs:\n```bash\n# macOS/Linux\nDEBUG=mineflayer-viaproxy:openAuthMod node your-script.js\n\n# Windows (PowerShell)\n$env:DEBUG = \"mineflayer-viaproxy:openAuthMod\"; node your-script.js\n```\n\nEnable logs from multiple packages:\n```bash\n# macOS/Linux\nDEBUG=mineflayer-viaproxy:*,minecraft-protocol node your-script.js\n```\n\nFor more information on the debug library and its patterns, see the [debug documentation](https://github.com/debug-js/debug).\n\n## API\n\n### Types\n\n#### `AuthType`\n\n```ts\nexport enum AuthType {\n    NONE = \"NONE\",\n    OPENAUTHMOD = \"OPENAUTHMOD\",\n    ACCOUNT = \"ACCOUNT\",\n}\n```\n\n| Name          | Value           | Description                                    |\n| ------------- | --------------- | ---------------------------------------------- |\n| `NONE`        | `\"NONE\"`        | No authentication                              |\n| `OPENAUTHMOD` | `\"OPENAUTHMOD\"` | OpenAuthMod authentication                     |\n| `ACCOUNT`     | `\"ACCOUNT\"`     | Account authentication (requires manual setup) |\n\n#### `ViaProxyOpts`\n\n```ts\nexport interface ViaProxyOpts {\n    forceViaProxy?: boolean;\n    javaPath?: string;\n    javaArgs?: string[];\n    localPort?: number;\n    localAuth?: AuthType;\n    viaProxyLocation?: string;\n    viaProxyWorkingDir?: string;\n    autoUpdate?: boolean;\n    viaProxyConfig?: Partial<ViaProxyConfig>;\n    viaProxyStdoutCb?: (data: any) => void;\n    viaProxyStderrCb?: (data: any) => void;\n}\n```\n\n| Name                 | Type                      | Default           | Description                                                                                                                           |\n| -------------------- | ------------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------- |\n| `forceViaProxy`      | boolean                   | false             | Whether or not to force the use of ViaProxy. If set to true, it will always use ViaProxy regardless of the server version.            |\n| `javaPath`           | string                    | `\"java\"`          | The path to the java executable. |\n| `javaArgs`           | string[]                  | `[]`              | Raw Java arguments to be passed directly.\n| `localPort`          | number                    | *auto determined* | The port to listen on for the local server. If none is specified, it will automatically locate an open port for you on your computer. |\n| `localAuth`          | `AuthType`                | `AuthType.NONE`   | The authentication type to use for the local server.                                                                                  |\n| `viaProxyLocation`   | string                    | \"\"                | The location of the ViaVersion proxy jar. If none specified, it will download automatically to the CWD + `viaproxy`. |\n| `viaProxyWorkingDir` | string                    | \"\"                | The working directory for the ViaVersion proxy. If none specified, it will use the CWD + `viaproxy`.                                  |\n| `autoUpdate`         | boolean                   | true              | Whether or not to automatically update the ViaVersion proxy.                                                                          |\n| `viaProxyConfig`     | `Partial<ViaProxyConfig>` | undefined         | Configuration options for ViaProxy.                                                                                                   |\n| `viaProxyStdoutCb`   | `(data: any) => void`     | undefined         | A callback for the stdout of the ViaVersion proxy.                                                                                    |\n| `viaProxyStderrCb`   | `(data: any) => void`     | undefined         | A callback for the stderr of the ViaVersion proxy.                                                                                    |\n\n#### `ViaProxyConfig`\n\n```ts\nexport interface ViaProxyConfig {\n    backendProxyUrl: string;\n    [key: string]: string | number | boolean;\n}\n```\n\n| Name              | Type    | Description                                                                         |          |                                                |\n| ----------------- | ------- | ----------------------------------------------------------------------------------- | -------- | ---------------------------------------------- |\n| `backendProxyUrl` | string  | The URL of the backend proxy to connect to. If none specified, it will not use one. |          |                                                |\n| `[key: string]`   | `string \\| number \\| boolean` | Additional configuration options for ViaProxy. |\n\n","readmeFilename":"README.md"}