Operator tools: session recording and replay

Two tools help you look back at what happened on your server: session recording saves what players did, and the replay viewer plays such a recording again in a world of its own. Both are off by default and cost nothing while off.

Both are beta. A replay is as faithful as the server's parity with Vanilla: if something differs, you see it.

Session recording

Turn it on in vanillite.toml:

[debug]
session-recording = true

It needs a restart. A session starts when the first player joins the overworld and ends when the last one has left. Fake test bots do not start or keep a session.

Key Default What it does
debug.session-recording false Turns recording on.
debug.session-recording-dir "recordings" Folder for the recordings, inside the server folder.
debug.session-checkpoint-minutes 10 Every this many minutes the chunks around the recorded players are saved again, so a replay can start from there. 0 turns checkpoints off.

All three need a restart. See Performance settings for the full list.

What is recorded

  • The overworld at the start: the world is saved, then its chunk, entity and point-of-interest files are copied into the recording. The overworld tick waits for the copy.
  • Every tick: the packets the players send (moves, digging, placing, clicks in inventories, attacks, …).
  • Some commands: only game commands such as fill, give, setblock, summon, gamemode or execute. Names of online players in them are replaced by their anonymous ids.
  • Checkpoints: the chunks, entities and players' state around the recorded players, written in the background.

What is not recorded

  • The Nether and the End.
  • Chat, other commands (for example administration), signs, books and plugin messages.
  • Names, addresses and UUIDs. Players get anonymous ids in join order: p0, p1, … A player who joins again gets a new id.

Bedrock players are recorded like the others, but marked as Bedrock in the recording (meta.json, and in the replay list). Their input is not a Java client's, so a replay may differ from what they saw.

Folder layout

Each session has a folder named after its start time (UTC):

File Content
world/ The overworld at the start (Anvil format).
packets.jsonl One line per join, packet, command and leave.
meta.json Seed, time, weather, difficulty, length, marks, counts of what players did and which ids are Bedrock players. Updated every minute.
checkpoints/<tick>/ The checkpoints.

Keeping and deleting

Vanillite never deletes recordings. A recording holds a copy of the overworld, and checkpoints add more, so recordings take a lot of disk space. Delete the folders of sessions you no longer need, or turn recording off. There is no setting for a time limit.

Privacy: tell your players

Recording is a copy of what players did, even though it holds no names. Tell your players that sessions are recorded, for example in the join message or the server rules, and keep the folder private: the copied world is your players' work.

Marking a session

/vanillite session shows whether recording is on and the running session. /vanillite session mark [<note>] marks the current tick of the running session, for example when something looked wrong. The note is saved in meta.json, so you can find that moment again later in the replay viewer. It needs operator level 2 and works from the console.

Replay viewer

The viewer loads a recording into an extra world called replay and plays it tick by tick. The recorded players join as p0, p1, … with default skins and send their recorded packets. The server computes everything else itself, so you see what Vanillite does with that session.

Set the folder with the recordings in vanillite.toml:

[debug]
replay-library = "recordings"

It is relative to the server folder and needs a restart. Empty (the default) turns the viewer off. The folder holds one folder per recording. A folder counts if it has world/ and packets.jsonl, so you can point the viewer at the folder where this server records, or at a folder you copy recordings into. An optional info.json next to them adds a source name, a result and the tick of the first difference to Vanilla, if a comparison found one.

Watching

Viewers are in creative mode and cannot change anything: breaking, placing, using items, touching entities, dropping, picking up and clicking in menus are all cancelled, so a viewer cannot disturb the replay. Only the recorded players change the world.

The viewer's hotbar holds control items. Their names and lore show the state (playing or paused, speed, position):

Item What it does
Lime or orange dye Play or pause.
Feather, sugar Slower, faster (steps from 0.1 to 32 times).
Arrow, spectral arrow Back or forward 10 seconds; sneak while clicking for 1 minute.
Nether star Jump to shortly before the first difference to Vanilla, if the recording has one.
Compass Opens a menu of the recorded players. Click one to follow it (Bedrock players are marked).
Book Opens the recordings menu.
Clock Shows the loaded recording and where it stands.

The recordings menu is a chest menu with paging. Buttons filter it by source server and by recordings with a difference. Clicking a recording opens its details; from there you load it at its start or at its first difference.

Only players with the permission of /vanillite replay (vanillite.command.replay, operator level 3 by default) can use the controls and the recordings menu. Other players can watch, follow a recorded player and read the info.

Commands

/vanillite replay <subcommand> (short: /vl replay) does the same from the chat or the console. It needs operator level 3, or the permission vanillite.command.replay.

Command What it does
list [<page>] Shows the recordings, newest first (20 per page): start, players, length, packets, result. Click one to load it.
load <n|id> Loads a recording, paused at its start. n is its number in the list.
play / pause Plays or pauses. They use the server's tick freeze.
speed <x> Plays at x times normal speed, from 0.05 to 50.
seek <tick|mm:ss|divergence> Jumps to a time, then pauses. Going back loads the recording again and runs to that time. divergence stops shortly before the first difference noted in info.json.
follow <p0|p1|…> Teleports you to that recorded player and follows it. Players only.
info Shows the loaded recording and where it stands (playing, paused, finished).
stop Ends the replay and sets the tick rate back to normal.

Replay messages in the chat start with [Replay]. Pause, speed and seek change the whole server's tick rate while a replay runs, so use the viewer on a server of its own, not next to a live game.

See also: Admin commands: /vanillite for the other commands, How parity is tested for how Vanillite is compared with Vanilla.

Back to the Guides overview.