2022-12-18 05:39:38 -08:00
# EaglercraftX (1.8.9) WebSocket Proxy
2022-12-20 11:28:12 -08:00
### Demo: `wss://eaglercraft-18.worldeditaxe.repl.co/server` ([EaglerX 1.8.9 client](https://web.arch.lol/mc/1.8.8/) only)
2022-12-18 05:39:38 -08:00
## What is this?
A very primitive and small Node.js based alternative to the custom BungeeCord servers for Eaglercraft 1.8.9. Until the developers officially release the BungeeCord server, this is the only way you can create a EaglercraftX server.
## Issues
2022-12-20 11:28:12 -08:00
* Occasional vague "End of Stream" error when disconnected
* Custom skins (excluding custom Eaglercraft skins) do not render correctly
2022-12-18 05:39:38 -08:00
## Setup Guide
### Prerequisites
* Node.js v12 and up
2022-12-20 11:28:12 -08:00
* TypeScript installed (`npm i -g typescript`, may require `sudo` or administrator permissions)
* An **OFFLINE** 1.8.9-compatible Minecraft server or proxy
2022-12-18 05:39:38 -08:00
### Setup Guide
2022-12-20 11:28:12 -08:00
#### If Repl.it is acceptable, fork the [demo](https://replit.com/@WorldEditAxe/eaglerx-server) and connect to it. All proxy files will be under the `proxy` folder.
2022-12-18 05:39:38 -08:00
1. Download and extract this repository to a folder on your computer.
2022-12-20 11:28:12 -08:00
2. Open a terminal and go to the folder of the repository. Run `npm i` , followed by `tsc` .
2022-12-18 05:39:38 -08:00
3. Edit `config.js` to configure your proxy. Below is a small breakdown of the configuration file.
```js
export const config = {
2022-12-20 11:28:12 -08:00
// The name of the proxy. (unused, required for MOTD)
name: "Proxy",
// The address to bind the WebSocket server to.
bindHost: "0.0.0.0",
// The port to bind the WebSocket server to.
// Use 80 if security.enabled is false, and 443 when it is true.
bindPort: 80,
// The max amount of concurrent connections allowed at once. (player cap)
2022-12-18 05:39:38 -08:00
maxPlayers: 20,
motd: {
2022-12-20 11:28:12 -08:00
// The file path that leads to an image.
// A 64x64 image is recommended, but any image with a 1:1 ratio will work.
iconURL: "./icon.webp",
2022-12-18 05:39:38 -08:00
// The first line of the MOTD.
l1: "hi",
2022-12-20 11:28:12 -08:00
// The second line of the MOTD.
2022-12-18 05:39:38 -08:00
l2: "lol"
},
server: {
2022-12-20 11:28:12 -08:00
// The hostname/IP of the remote server you want the proxy to connect to.
2022-12-18 05:39:38 -08:00
host: "127.0.0.1",
2022-12-20 11:28:12 -08:00
// The port of the remote server you want the proxy to connect to.
// On most Minecraft server installations, the default port is 25565.
2022-12-18 05:39:38 -08:00
port: 25565
},
security: {
2022-12-20 11:28:12 -08:00
// Set this to true to enable encryption (wss://).
// If you're using Repl.it, there's no need to enable encryption as it comes by default on all repls.
// You will need to obtain certificate files in order to enable encryption.
2022-12-18 05:39:38 -08:00
enabled: false,
2022-12-20 11:28:12 -08:00
// The private key file provided to you by your certificate authority.
2022-12-18 05:39:38 -08:00
key: null,
2022-12-20 11:28:12 -08:00
// The certificate file provided to you by your certificate authority.
2022-12-18 05:39:38 -08:00
cert: null
}
};
```
2022-12-20 11:28:12 -08:00
4. Run the server (`node index.js`).