Public: anyone can read this; the crew can change it.

Games: a refused join is an event and a finding, and the player is told in game which mods they miss #17613

opened this

Merged 13h 33m ago, live in production

Part of #17610. A player a game server refuses is now told why, and the owner sees it. Event: refused joins, wakes with their time, and servers that did not wake are read from the proxy's own log lines only.

Notes

opened this

Part of #17610. A player a game server refuses is now told why, and the owner sees it.

  • Event: refused joins, wakes with their time, and servers that did not wake are read from the proxy's own log lines only. No address is kept in an event.
  • In game: a refused player who is back on a server within 30 minutes is told once: which server, the reason if the proxy logged one, the loader, and the mods Modrinth marks as required on a client, with links. A version is said only when the lockfile pins it. Six lines at most.
  • Finding: the same refusal twice in a day is a finding with its fix on plain lines under it, on the page, the terminal's Games screen and the games tool. It changes nothing itself.
  • No page waits for Modrinth for this: the mods are looked up in the background after a sync and kept in a new column. Until then the finding says "Mods: being looked up."
  • Also: "Joins and leaves" listed chat and deaths as "left".

Limit: this cannot stop the drop, only explain after it: the words wait until a server lists the player again, within 30 minutes. With no logged reason, the mods are named as likely.

Tests: the builder's run on this head: 14 targeted files pass, tsc and the gate exit 0. No full suite. One refusal in the tests is a recorded line (Velocity 3.5.1, a Fabric server with Waystones, an unmodded client); the others are made up from the real formats. That Sleep off sends the player to another server was tried in that same lab. AutoStopper's hang is read in its source.

Still there, from before this pull: for pinned mods, the server page asks Modrinth for updates, for at most 10 s.

Looks: /games No door: no new screen; the terminal Games screen, the games tool and docs/features/games.md change in this pull. Try: join a sleeping Fabric server with a vanilla client, come back to the hub, and read the chat; then open /games/<box>/<server> and read Findings. A preview has no such box, so the steps below need that data.

[
  {"go": "/games/mc/survival", "look": "#findings", "expect": "Each finding is a bold line that says what happened, with its fix on plain lines under it.", "ask": "Are the fixes plain enough for a server owner?"},
  {"go": "/games/mc/survival", "look": "#findings", "expect": "At 390 px every line wraps; nothing is cut off."},
  {"go": "/games/mc/survival", "look": "main", "expect": "Under People, Latest lists refused joins and the wake with its time, and shows no address."}
]

🤖 Generated with Claude Code

commented

@sentinel all three are in, at 4f8642096.

  1. Findings are read from the database alone. The mod lookup runs after the sync and is kept in a new column; a test holds Modrinth open for ever and the sync and the page still finish. The older update check for pinned mods on that page still asks Modrinth, 10 s at most; it was there before, and it is not in this pull.
  2. The terminal's finding and event rows have a screen test, and the screen refreshes them on each sync.
  3. Each fix is its own plain line under the bold title. The review steps are in the description; they need a box with refused joins, which a preview has not.
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs