beta Free and open source. Get the jar

Turn your Hytale servers into one network.

Link is a free plugin that lets players move between your servers without leaving the game.

lobby-1

lobby
Steve /play skywars
pass

sw-2

skywars
Steve checking pass checked

Features

One command to play

/play skywars sends players to a game with room. /server picks a specific one.

Secure by default

Every move between servers is checked, so players can't fake one.

Servers join on their own

New servers show up in the network by themselves, with Redis or Cloudflare.

See who is where

/players and /find show every player on every server. /servers lists the network.

Fill games, spread lobbies

Fill the busiest game that still has room, or spread players evenly over lobbies.

No proxy, no database

Uses Hytale's own server transfers. One settings file is enough to start.

How the pass works

Hytale moves a player by telling their game to connect to another server, and the pass travels through that game. So before sw-2 lets Steve in, it checks three things.

  • Signed by your network

    The pass is signed with your network's secret. A player can't create one or change what it says.

  • For one player, one server

    It names who is moving and where to. Nobody else can use it, and it works on no other server.

  • Once, and only briefly

    A pass works one time, within 30 seconds. A copied or old pass is refused.

If a check fails, the player isn't moved on a fake pass: Link treats it as a normal join, or sends them back to your lobby if you turn that on.

What your server consoles print for one move:

lobby-1 [Link] matched sw-2 (7/12 players, strategy fill)

lobby-1 Referring player Steve (6f1d2c4e-8a3b-4e7f-9c21-5b0a7d3e9f14) to 10.0.0.2:5521 with 222 bytes of data

sw-2 [Link] ticket from lobby-1 for Steve: signed, addressed here, 29s left, first use

Installation

One jar and one settings file. A shared file is the quickest start; you can move to Redis or Cloudflare later.

  1. 1

    Download the jar from the releases page and put it in the mods folder of every server.

  2. 2

    Start each server once. Link creates its settings file, mods/Link_Link/link.json.

  3. 3

    List all your servers in that file and copy it to every server. Only serverId is different on each one.

  4. 4

    Restart, then type /servers in game to see your network.

mods/Link_Link/link.jsonJSON
{
  "serverId": "lobby-1",
  "backend": "static",
  "secret": "generated on first boot",
  "servers": [
    { "id": "lobby-1", "group": "lobby",   "host": "play.example.com", "port": 5520 },
    { "id": "sw-1",    "group": "skywars", "host": "play.example.com", "port": 5521 }
  ]
}

Connect your servers

To move players around, each server needs to know about the others. Pick one of these. You can change it later.

  • default

    A shared settings file

    Type your servers into link.json and copy it to every server. Good for a handful of servers.

  • Redis

    Servers add themselves to your Redis, and Link sees how busy each one is. Good if you already run one.

  • free

    Cloudflare

    Hosted for you on a free Cloudflare account, nothing to run. One click gives you a URL and a token; servers then join on their own.

Supported games

Hytale

Supported. Uses Hytale's built-in server transfers, so there is no proxy to run.

Minecraft planned

Planned, using the server transfers Minecraft added in 1.20.5. Also without a proxy. See the roadmap.

For plugin developers

Your own plugins can move players and see the whole network through Link's Java API. If a move can't happen, you get a message you can show the player.

Your pluginJava
LinkPlugin.play(player, "skywars");             // matchmake into a group
LinkPlugin.send(player, "sw-1");                // to one server
LinkPlugin.send(player, "farm-1", "farm-42");   // into a world there

LinkPlugin.servers("lobby");                    // every lobby
LinkPlugin.find("Steve");                       // which server Steve is on
The Java API

FAQ

Is it free?
Yes. Link is open source, has no account or sign-up, and does not send any data to us.
Do I need a proxy?
No. Hytale can move players between servers by itself. Link decides where they go and checks that the move is real.
Can a player fake a move to a server they shouldn't reach?
No. The pass is locked to one player and one server, expires after 30 seconds and works once.
What does Link not protect against?
All your servers share one key. If one of them is hacked, it could let players into the others. That is fine when you run every server yourself, and a reason not to share a network with servers you don't trust.
What if Redis or Cloudflare goes down?
Players can still move. Every server keeps the last server list it got, and picks up changes again when the registry is back.

One network, one jar.

Put Link on your servers and let players move between them. Free, open source, no account.

Developed in the open. Bug reports, ideas and pull requests are welcome on GitHub.