Skip to content

Hytale server network with hubs and /play

The TalePanel network mod (talepanel-network) turns several Hytale servers into one network. Players join a hub and type /play <gamemode> to be sent to a gamemode server. The hand-off uses Hytale’s server referral with a signed ticket.

  • Every server in the network has a role: hub or gamemode.
  • The panel writes each server’s config to talepanel/network.json in the server directory. The mod re-reads the file when it changes, so no restart is needed after a role change.
  • A hub’s config lists every gamemode server, with its name and address. The address is the node’s public address (or its hostname) plus the server’s port.
  • /play <gamemode> on a hub creates a ticket for that player and that gamemode, signed with the gamemode’s key, and refers the player there. Tickets are valid for 30 seconds.
  • A gamemode server with require_referral set only admits players who arrive with a valid, unexpired ticket for that server and that player. Others are told to join through the hub. require_referral is shown in the server’s Settings tab but cannot be changed from the panel or API yet; without it, a gamemode also accepts direct connections.
  • The gamemode name players type is the server’s name in the panel. An unknown name gets the list of available gamemodes.

The panel holds one master secret per installation. Each server’s ticket key is derived from it (HMAC-SHA256 of the master secret and the server ID). A gamemode’s network.json only contains its own key, so whoever can read one gamemode’s files can only forge tickets for that one server.

The hub has to sign for every gamemode, so it holds all gamemode keys. Only give the hub role to a server you trust.

  1. Build the mod. It is in the repository under mods/talepanel-network. Build it with a JDK 25:
    Terminal window
    cd mods/talepanel-network
    ./gradlew build
    The jar is build/libs/talepanel-network.jar.
  2. Install the jar on the hub and on every gamemode server, for example by uploading it as a mod.
  3. Assign roles. As an admin or owner (permission network.manage), call the API for each server, with hub, gamemode, or none to take a server out of the network:
    Terminal window
    curl -X POST https://panel.example.com/api/v1/network/servers/<server-id>/role \
    -H "Authorization: Bearer <access-token>" \
    -H "Content-Type: application/json" \
    -d '{"role":"hub"}'
    A role change rewrites the config of every networked server, because the hub’s gamemode list changes too.
  4. POST /api/v1/network/distribute (same permission) pushes the configs again if a server missed them.

The API also rewrites every server’s network.json when it starts.

Handoff keys became per server in v0.10.0-beta (config version 2). Update the mod on every networked server. The API rewrites the configs on start.

Players can be banned from every server in the installation at once from the Players page. See Players.

TalePanel

Built by BitaceS · sudowl.com · Partner:HytaleTalk

Free forever · AGPL-3.0 · Not affiliated with Hypixel Studios. · Impressum · Datenschutz