Server owners
A Play on Tint link or button opens Tint and joins your server.
The link
https://tintmc.pages.dev/play/?join=play.example.net&ref=examplejoin: your server's address, as players type it. Add:portif it isn't 25565.ref: a short name for your server. Joins through your link are counted under it, with no names or addresses. Ask on Discord for your weekly count.
Your server needs to let in players without an account (online-mode=false) and take 26.3 clients (ViaVersion is fine).
The button
<a href="https://tintmc.pages.dev/play/?join=play.example.net&ref=example"><img src="https://tintmc.pages.dev/partners/play-on-tint.png" width="248" height="48" alt="Play on Tint"></a>Put your address and name in place of play.example.net and example. On Discord, post the link itself.
Players' own addresses
Tint players reach your server through Tint's relay, so their connections come from Cloudflare's addresses. Bans by address, limits per address and anti-bot checks then see Cloudflare, not the player.
For servers on its list, the relay sends a PROXY protocol header (the format HAProxy made; v2, or v1 if you ask) before the game's own bytes, with the player's address in it. Velocity, BungeeCord and Paper read it when the setting below is on.
- Use a port for Tint players only. With the setting on, a port takes only connections that start with the header, so players who join directly keep the port they use now.
- Turn the setting on for that port.
- Let only Cloudflare's addresses reach that port with your firewall. Anyone else could send a made-up address.
- Send us the address and port on Discord. Once it's on the list, put that address in your link.
Velocity (a second Velocity on the Tint port), velocity.toml
haproxy-protocol = true
BungeeCord, config.yml, a second entry under listeners
proxy_protocol: true
Paper with nothing in front, config/paper-global.yml
proxies: proxy-protocol: true
Behind Velocity or BungeeCord, turn it on there, not on the Paper servers.
Telling Tint connections apart
- Every connection through the relay comes from Cloudflare's addresses.
- The game's own bytes are not changed: nothing is added to the address in the handshake.
- The v2 header carries two more fields: type
0x02, the address the player typed, and type0xE0, the bytestint.
Get added
On Discord, send the address and port for Tint players, v2 or v1, and the ref name you'll use.