A proxy to wait out 2b2t.org's way too long queue.
- Download node.js and install it. On non-windows platforms, you also need npm.
- Download this repository with the green button (top right of this page). If you downloaded it as zip, unzip it.
- Open a terminal and navigate to the folder you downloaded it
- Run
npm install
- Copy secrets.json.example and name it secrets.json. Fill out your minecraft information in the file. Note that you must use your email adress and not your minecraft username.
- If you so wish, edit the configuration in config.json. (On Linux ports below 1024, including port 80, require you to run the program with administrator rights.)
- For trust reasons, this tool does not update automatically. Check back here once in a while to see if there are any updates.
- Use a (preferably) 24/7 server enviroment.
ssh
into it. - Install dependencies using your package manager (
apt
ondebian
):npm
,nodejs
,git
andscreen
withsudo apt install npm nodejs git screen -y
git clone https://github.com/sijanec/2bored2wait && cd 2bored2wait
or even better, download the latest release from releases.npm install
cp secrets.json.example secrets.json
- edit file with your Minecraft credentials with your chosen editor. I use
nano secrets.json
. Input your Minecraft username and password. Use your email instead of your username if you have created your account after 2012 or have migrated it. chmod 700 secrets.json
to prevent other users on the system from viewing your Minecraft password.- edit file with configuration with your chosen editor. I use
nano config.json
. Change the password (for the web interface) and ports if you want to.
- Read the code to ensure i'm not stealing your credentials. i'm not, but you shouldn't take my word for it. If you don't know how to read it, downloading stuff off the internet and giving it your password is probably a bad idea anyway.
- Run
screen
to create a new persistent terminal. That way the proxy server won't die when you close thessh
session with your computer. To exit the virtual screen, hit Ctrl-a, Ctrl-d, to rejoin to the screen, executescreen -r
- In your
screen
session, while in the2bored2wait
directory, runnpm start
. The program does not output any text to the terminal. - Leave your
screen
session with Ctrl-a Ctrl-d. Executeip a
to show your IP address. You may want to set up port forwarding to access your host from the Internet. - Open a browser on a device that can reach your host and type <your-IP>:8080 in the address bar, to show the web interface.
- Enter your password and press the "Start queing" button. The queue position indicator auto-updates, but sometimes it takes a while to start counting (like 1 min).
- once the queue reaches a low number, connect to the minecraft server at your IP address. Currently, you have to connect BEFORE reaching the end of the queue.
- To disconnect without having to requeue afterwards, just Disconnect from the game's pause menu.
- Reconnecting: reconnect to your IP address (with your MC client) and
hit F3+A to reload chunks. This is important. Otherwiseyou will only see black. I don't know how to fix this. Somehow we have to force 2b2t to send us chunks again or something. I know that kiIIing yourself (!!! in game obviously !!!) and respawning will resend the chunks... - Disconnecting from 2b2t (you will have to requeue for your next connect) (I don't see the point in doing that). Use the Stop Queueing button in the web interface.
soon
- starting the queue will revoke your minecraft token. this means that you will not be able to join normal minecraft servers until you restart the game
- starting the queue too many times in a row can sometimes boot you out of your minecraft account (starting the queue or connecting in the minecraft client will tell you "wrong email or password"). to fix this, log in to your account at minecraft.net, then restart minecraft. both of these issues are limitations put in place by mojang to prevent account stealing, and are not fixable.
- Some people report not being able to ride animals using this proxy.
- 2b2t sometimes bugs out and removes you from the queue without telling you. In this case, your queue position will no longer move. Reconnect to fix this.
- antiafk: every 50 seconds, if
proxyClient
is not connected andfinishedQueue
istrue
,/r RusherB0t !que
will be sent as achat
to 2b2t to prevent getting AfkKicked. That way you can stay online forever. -
- Note: after disconnecting from the proxy server, your Minecraft client's chunks of 2b2t world will obviously get purged. Since the proxy server does not store map data (too complicated to implement, and also not needed, read on), after reconnection, 2b2t will have no idea that you don't have the chunks and it will not resend them, that's why you will end up with a black screen. To mitigate this problem, I will soon implement saving map data proxyServer-side. There is no fix yet.