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.
How it works
Section titled “How it works”- Every server in the network has a role:
huborgamemode. - The panel writes each server’s config to
talepanel/network.jsonin 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_referralset 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_referralis 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.
Set it up
Section titled “Set it up”- Build the mod. It is in the repository under
mods/talepanel-network. Build it with a JDK 25:The jar isTerminal window cd mods/talepanel-network./gradlew buildbuild/libs/talepanel-network.jar. - Install the jar on the hub and on every gamemode server, for example by uploading it as a mod.
- Assign roles. As an admin or owner (permission
network.manage), call the API for each server, withhub,gamemode, ornoneto take a server out of the network:A role change rewrites the config of every networked server, because the hub’s gamemode list changes too.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"}' 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.
Upgrading from v0.9
Section titled “Upgrading from v0.9”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.
Network-wide bans
Section titled “Network-wide bans”Players can be banned from every server in the installation at once from the Players page. See Players.
Built by BitaceS · sudowl.com · Partner:
HytaleTalk
Free forever · AGPL-3.0 · Not affiliated with Hypixel Studios. · Impressum · Datenschutz
