Replay
Records every player in the background and replays any moment with NPCs that only the viewer sees. Saved replays can be turned into an MP4 video and an interactive 3D web page, and shared through the replay website.
Requirements
- Paper (or a fork) 1.21+, Java 21. Folia is supported.
- Optional: CoreProtect, Simple Voice Chat, GrimAC, ShoreAC, TotemGuard, PolarLoader, PenguinAntiCheat, Vulcan, Spartan, Matrix, AAC, NoCheatPlus, Sentinel, WorldEdit or FastAsyncWorldEdit (see Integrations).
- Optional:
ffmpegon the server for faster, smaller videos and for sound in videos (see Video and 3D exports). - Paper 1.21.7+ for the dialog menus (
/replay menu,/replay timeline,/replay review). On older versions those three commands only tell you dialogs are unsupported. Everything else works.
Installation
- Drop
Replay.jarintoplugins/. - Start the server once to generate the config files (
config.yml,recording.yml,playback.yml,tools.yml,anticheat.yml,discord.yml,export.yml,hooks.yml,s3.yml,database.yml,messages.ymland theguifolder). - Put your license key in
license-keyinconfig.yml. - Restart. Recording starts immediately for every online player.
Recordings live in plugins/Replay/recordings by default (recording.folder). For a shared database, set type in database.yml to MYSQL or MARIADB. Changing the storage type needs a full restart, and old recordings are not moved. If the database is unreachable on startup, Replay falls back to FILE.
Updating from an older version needs nothing from you. Settings that used to live in config.yml are moved into the new files automatically, a copy of the old file is kept as config.yml.before-split, and when a new version changes a default you never touched, the old files are copied to plugins/Replay/backups first. Missing keys are added on startup and on reload. When that happens, <file>.new lists only what was added and <file>.bak is your file as it was before; both are safe to delete.
Commands
Main command /replay, alias /rp. Both are configurable under commands in config.yml. /replay help lists the most used commands.
Times accept 30s, 5m, 1h30m, 2d. A bare number is minutes for replay windows and seconds for skip/back.
Watching
| Command | Description |
|---|---|
/replay <player> [time] [speed] [ago] |
Watch a player. time is the length, ago is how long ago the window ends. |
/replay watch <player> [time] [speed] [ago] |
Same as above. |
/replay area [chunks] [time] [speed] [ago] [source <mode>] |
Watch the chunks around you. source picks where block changes come from: replay, coreprotect or both (see playback.area-source). It can be added to every area form below. |
/replay area at <player> [chunks] [time] [speed] [ago] |
Watch the area around another player. |
/replay area pos <x y z> [chunks] [time] [speed] [ago] |
Watch the area around a position. |
/replay area world <world> <x> <y> <z> [chunks] [time] [speed] [ago] |
Watch the area around a position in another world. |
/replay who [chunks] [time] |
List who was nearby. |
/replay find <player> <death|kill|flag|chest> [window] |
Search recordings for an event, then click a result to watch it. |
/replay find <player> <break|place> <block> [window] |
Search for a block being broken or placed. |
A replay recorded in a world that is not loaded loads that world first (Paper only, the world folder must exist) and teleports you into it. Folia cannot load worlds at runtime (playback.load-worlds).
Controls (while watching)
Replay gives you hotbar items for rewind, play and pause, forward, the inventory hologram, speed, auto camera, the menu, noclip and leaving. Left and right click the speed and auto camera items for the two directions or modes, and sneak while using rewind or forward for a longer skip. The noclip item lets you fly through walls in spectator, double-tap sneak to come back. Only the replay host controls playback. Clicking a recorded container in chat opens a read-only view of its contents.
| Command | Description |
|---|---|
/replay pause, resume, toggle |
Pause or resume. |
/replay speed <speed> |
Set playback speed. |
/replay skip <time> / /replay back <time> |
Skip forward or rewind. |
/replay jump <0-100> |
Jump to a percentage of the replay. |
/replay next [type] / /replay prev [type] |
Jump to the next or previous marker. Types: death, kill, explode, flag, teleport, join, quit, bookmark. |
/replay bookmark [name] |
Add a bookmark at the current time. |
/replay timeline |
Open the timeline of markers. |
/replay menu |
Open the control menu (players, jump to time, speed and viewer settings). |
/replay tp <actor> |
Teleport to a replayed player. |
/replay follow <actor> / /replay unfollow |
Follow a replayed player. |
/replay auto [pov|cinematic|off] |
Auto camera that follows the action. |
/replay holo |
Toggle the inventory hologram above players. |
/replay combat |
Toggle the combat overlay (CPS, reach, aim snaps, damage numbers). |
/replay inspect |
Toggle block history inspect (needs CoreProtect). |
/replay camera add|remove <n>|clear|list|play [seconds]|stop |
Build and play a keyframed camera path. |
/replay compare <actor1> <actor2> [seconds] |
Compare two replayed players. |
/replay stop |
End the replay. |
/replay status |
Show whether you are being recorded. |
Replays play footsteps, hits, block, mob, bow, eating and other sounds, and show a combat card on the action bar with attacker, victim health, damage, combo, CPS and reach. Both can be turned off for everybody (playback.sounds, playback.combat.card) or per viewer in the menu settings.
Sharing
| Command | Description |
|---|---|
/replay invite <player> |
Invite a player to watch with you (host only). |
/replay join <host> |
Join a hosted replay. |
/replay leave |
Leave a replay. |
/replay kick <guest> |
Remove a guest (host only). |
/replay viewers |
List everyone watching. |
Saved replays and anticheat
| Command | Description |
|---|---|
/replay save [name] |
Save the replay you are watching. |
/replay saved |
List your saved replays. |
/replay saved all |
List everyone's saved replays. |
/replay saved play <id> [speed] |
Play a saved replay. |
/replay saved upload <id> |
Upload a saved replay to Discord. |
/replay saved export <id> [video|html|both] [send] |
Make an MP4 video and/or a 3D web page of a saved replay. Without a format, export.default-format decides. send also posts it to the Discord webhook. |
/replay saved link <id> |
Get the browser link to a saved replay (replay website, or your S3 bucket). |
/replay saved gallery |
Get the link to your server's gallery on the replay website. |
/replay saved delete <id> |
Delete a saved replay. |
/replay flag <player> <source> <check> |
Save an anticheat replay for a player. Meant for the punishment commands of any anticheat. |
/replay review |
Open the anticheat review queue. |
Admin
| Command | Description |
|---|---|
/replay stats |
Show storage statistics. |
/replay reload |
Reload config and messages. |
/replay mode [continuous|punish] |
Show or change the recording mode (see Recording modes). |
/replay delete ... |
Force delete saved data. Every form shows a preview first; add confirm at the end to really delete. |
/replay delete:
| Form | Deletes |
|---|---|
delete saved <id|all|player <name>> |
Saved replays, their world snapshots and exports. |
delete exports <id|all|player <name>> |
Exported MP4 and 3D files. |
delete worlds <id|all|player <name>> |
World snapshots of saved replays. |
delete site <id|all|player <name>> |
Copies on the replay website. |
delete s3 <id|all|player <name>> |
Copies in your S3 bucket. |
delete recordings <all|age> |
Stored recordings (the rolling buffer). age is for example 6h. |
delete reviews |
The anticheat review queue. |
delete skins |
Cached player skins used by exports. |
delete textures |
The downloaded texture pack. |
delete everything |
Saved replays, exports, world snapshots, skins, recordings, site and S3 copies and the review queue. Textures are kept. |
Permissions
| Permission | Default | Description |
|---|---|---|
replay.use |
op | Watch replays and use find. |
replay.area |
op | Area replays and /replay who (also needs replay.use). |
replay.save |
op | Save replays and use /replay saved. |
replay.saved.others |
op | See, play, export and delete other players' saved replays. |
replay.join-any |
op | Join any hosted replay without an invite. |
replay.anticheat |
op | Use /replay flag. |
replay.anticheat.notify |
op | Get told when a flag saves a replay. |
replay.review |
op | Use /replay review. |
replay.export |
op | Use /replay saved export, link and gallery. |
replay.stats |
op | Use /replay stats. |
replay.reload |
op | Use /replay reload. |
replay.mode |
op | Use /replay mode. |
replay.delete |
op | Use /replay delete. |
replay.exempt |
false | Not recorded. Only works if recording.allow-exempt is true and the permission is given explicitly (wildcards are ignored). |
replay.voice.exempt |
false | Voice chat is never recorded for this player. |
Permission nodes can be renamed under permissions in config.yml.
Configuration
Settings are split by topic. Apply changes without a restart with /replay reload (database changes need a full restart). Every key is commented in the generated file. Only the main keys are listed here.
| File | What it holds |
|---|---|
config.yml |
License key, colors, storage, performance, saved replays, the replay website, command name and permission nodes. |
recording.yml |
What is recorded and how recordings are kept. |
playback.yml |
How replays look and play, viewer settings, controls, sharing, auto camera and the hologram. |
tools.yml |
Combat overlay, markers and search, camera paths and compare. |
anticheat.yml |
Anticheat clips, staff and Sentinel punishments, the clip webhook and the review queue. |
discord.yml |
Discord uploads and webhook layouts. |
export.yml |
MP4 video and 3D web page exports. |
hooks.yml |
CoreProtect and Simple Voice Chat. |
s3.yml |
S3 storage. |
database.yml |
FILE, MySQL or MariaDB storage. |
messages.yml |
Every chat, action bar, title and sound message. Each can be switched off on its own. |
gui/controls.yml, gui/dialogs.yml, gui/container.yml |
Hotbar items, dialog menus and the container view. |
export/mobs.yml, export/sounds.yml |
Mob models and sound mapping used by exports. |
config.yml
| Key | Default | Description |
|---|---|---|
license-key |
- | Your license key. |
debug |
false |
Extra diagnostics in the console. |
accent-color |
�D4FF |
Main color, used as {accent} in messages and menus. |
colors.* |
- | Shared palette: success, error, warning, muted, separator, info, white. |
settings.messages.chat / actionbar / title / sound |
true |
Switch whole kinds of output on or off for everybody. |
settings.formats.decimals / size-decimals |
2 / 1 |
Decimals in speeds and in KB/MB sizes. |
commands.label / commands.aliases |
replay / rp |
Command name and aliases. |
commands.*-suggestions |
- | Tab-complete values for time, ago, skip, speed, chunks and jump. |
permissions.* |
- | Rename any permission node. |
style.* |
- | Look of the text on hotbar items. |
storage.compression-level |
4 |
1 (fastest) to 9 (smallest). |
storage.compress-threads |
0 |
Compression threads. 0 is automatic. |
storage.pause-above-mspt |
40.0 |
Compression waits while a tick takes longer than this. Not available on Folia. |
storage.max-backlog |
1000 |
Recordings waiting to be stored before new ones are dropped, so memory never fills up. |
storage.query-threads |
2 |
Threads that load recordings when a replay starts. |
performance.adaptive |
true |
Lowers recording detail as more players are online (performance.tiers). Small servers keep full detail. |
saved.keep-days |
7 |
Saved replays are deleted after this. |
saved.max-per-player |
20 |
Saved replay cap per player. |
saved.max-name-length |
48 |
Longest saved replay name. |
recording.yml
| Key | Default | Description |
|---|---|---|
recording.enabled |
true |
Master switch. false records nothing new (stored replays stay watchable). |
recording.no-replay-worlds |
empty | Worlds where Replay does nothing: nothing is recorded there and nobody can watch a replay in them. Names are not case sensitive and * / ? match any text, for example arena_*. |
recording.mode |
CONTINUOUS |
CONTINUOUS or PUNISH_ONLY (see Recording modes). |
recording.sample-every-ticks |
1 |
How often player movement is sampled. |
recording.entity-sample-every-ticks |
2 |
How often non-player entities are sampled. |
recording.record-chat / record-commands |
true |
Include chat and commands in replays. |
recording.max-text-length |
200 |
Longest chat message or command stored. |
recording.command-blacklist |
login, register, ... | Commands never recorded. |
recording.allow-exempt |
false |
Let replay.exempt skip recording. |
recording.teleport-min-distance |
8 |
Moves longer than this are recorded as teleports. |
recording.container-types |
chests, barrels, ... | Containers whose opening and transfers are recorded. |
recording.tracked-entities |
crystals, TNT, arrows, ... | Non-player entities recorded. |
recording.projectiles-from-players-only |
true |
Only record projectiles shot by players. |
recording.world-changes.* |
mostly true |
Fluids, fire, form and fade, falling blocks, pistons, support blocks and dispensers. growth is false (busy on farm servers). |
recording.mobs.enabled |
true |
Record mobs near players. vehicles (boats, minecarts) and items (dropped items) are separate toggles. |
recording.mobs.player-radius / max-per-area |
32 / 100 |
How far from players mobs are recorded, and the cap per area. |
recording.worldedit.enabled / max-blocks |
true / 200000 |
Record WorldEdit and FAWE edits, with a block cap per edit. |
recording.folder |
recordings |
Folder used by the FILE database type. |
recording.segment-seconds |
60 |
Recordings are written in pieces of this length. |
recording.keep-hours-on-disk |
48 |
Recordings older than this are deleted (any database type). |
If CoreProtect is installed and coreprotect.world-changes is on (the default), CoreProtect supplies the non-player world changes instead and Replay skips recording them itself.
Recording modes
| Mode | What happens |
|---|---|
CONTINUOUS (default) |
Everything is saved and kept for recording.keep-hours-on-disk. |
PUNISH_ONLY |
Nothing is saved on its own. Only the last minutes are held in memory, and a clip is saved when someone is punished (an anticheat punishment or a staff /ban, /kick and similar). No compressing and no disk use between punishments. Needs anticheat.clip-on to include PUNISH (or BOTH). |
Change it live with /replay mode continuous or /replay mode punish.
playback.yml
| Key | Default | Description |
|---|---|---|
playback.default-minutes |
5 |
Replay length when none is given. |
playback.max-minutes |
2880 |
Longest replay that can be requested. |
playback.default-speed / min-speed / max-speed |
1.0 / 0.1 / 32.0 |
Speed limits. |
playback.max-skip-seconds |
3600 |
Largest single skip. |
playback.default-radius-chunks / max-radius-chunks |
2 / 0 |
Area radius. 0 means no max. |
playback.area-source |
both |
Where area replays take block changes from: both (Replay's recording plus CoreProtect history for what Replay did not record), replay (Replay only) or coreprotect (CoreProtect only, Replay still supplies players, mobs and items). coreprotect needs CoreProtect. With replay, changes CoreProtect supplies through coreprotect.world-changes are missing. |
playback.nearby-radius |
24 |
When watching one player, also show anyone within this many blocks. |
playback.include-all-players |
true |
Player replays also include everyone else in the area. |
playback.max-players |
150 |
Max players shown at once (closest first). |
playback.load-worlds |
true |
Load a replay's world first when it is not loaded (Paper only). |
playback.teleport-distance |
96 |
The viewer is teleported to the replay when further away than this. |
playback.always-teleport-to-player |
true |
Always teleport to the replayed player when a replay is about one player, even when already close. |
playback.highlight-focus |
true |
Make the replayed player glow. |
playback.npc-name-format |
- | Name shown above replayed players. |
playback.reveal-hidden / glow-hidden |
true / true |
Show vanished players in replays, and make them glow. |
playback.stop-at-end |
false |
Keep the replay open at the end. |
playback.sounds |
true |
Play replay sounds. Many are muted above max-speed-sounds (4.0). |
playback.combat.card |
true |
Combat card on the action bar. |
playback.flag-callouts |
true |
Show anticheat flags as call-outs during playback. |
viewer.gamemode |
ADVENTURE |
Gamemode while watching. |
viewer.return-to-start |
true |
Teleport back when the replay ends. |
viewer.mute-grim-alerts |
true |
Turn Grim alerts off while watching and back on afterwards (only if they were on). |
viewer.hide-live-players |
true |
Hide the players who are really online so you only see what happened then. |
viewer.hide-live-entities |
true |
Also hide live mobs, items and projectiles near you. |
controls.speed-steps |
0.25 to 32 | Speeds the speed item cycles through. |
controls.skip-seconds / skip-seconds-sneak |
10 / 60 |
Rewind and forward amounts. |
sharing.invite-seconds |
120 |
How long an invite stays valid. |
auto-camera.* |
- | Switching rules and cinematic camera settings for /replay auto. |
holo.default-on |
false |
Inventory hologram on by default. |
tools.yml
| Key | Default | Description |
|---|---|---|
combat.default-on |
true |
Combat overlay on by default. |
combat.cps-warning / reach-warning |
16 / 3.1 |
CPS and reach values highlighted in the combat overlay. |
markers.max-bookmarks |
100 |
Bookmark cap per replay. |
markers.bossbar-enabled |
true |
Show the next marker on the boss bar. |
markers.find-default-hours / find-max-results |
24 / 10 |
Default search window and result count for /replay find. |
camera.default-seconds / max-seconds / max-keyframes |
10 / 600 / 32 |
Camera path defaults and limits. |
compare.default-seconds / max-seconds |
15 / 300 |
Length of /replay compare. |
anticheat.yml
| Key | Default | Description |
|---|---|---|
anticheat.enabled |
true |
Auto-save a clip when a hooked anticheat flags or punishes a player. |
anticheat.clip-on |
BOTH |
When a clip is made: FLAG, PUNISH, BOTH or NONE (flags are still shown in replays). |
anticheat.flags.required / window-seconds |
5 / 60 |
Flags needed within this many seconds before a clip is made. 0 seconds means no time limit. |
anticheat.flags.per-check |
false |
Count each check on its own instead of all checks together. |
anticheat.flags.min-violations |
1 |
Ignore flags below this violation level. |
anticheat.flags.reset-after-clip |
true |
Start counting again after a clip. |
anticheat.punish.seconds-before / seconds-after |
90 / 3 |
Replay length for punishment clips. |
anticheat.punish-verbs |
ban, tempban, kick, mute, ... | Only commands an anticheat runs that start with one of these count as a punishment. |
anticheat.ignore-bracket-commands |
true |
Commands starting with [ (Grim's [alert], [webhook], [log]) are never punishments. |
anticheat.punish-any-command |
false |
true counts every command the anticheat runs as a punishment (not recommended). |
anticheat.ignored-punish-commands / punish-command-patterns |
empty | Regexes. A match in the first is never a punishment. If the second is not empty, only matches count, instead of punish-verbs. |
anticheat.punish.min-flags |
0 |
A punishment only makes a clip if the player had at least this many flags in the window. |
anticheat.ignored-checks / only-checks |
empty | Checks that never count, or the only checks that count. A trailing * means "starts with". |
anticheat.seconds-before / seconds-after |
60 / 10 |
Replay length around a flag. |
anticheat.cooldown-seconds |
60 |
One clip per player in this window. |
anticheat.keep-days |
2 |
How long anticheat saves are kept. |
anticheat.name-format |
{source} {check} - {player} |
Saved replay name. |
anticheat.record-flags |
true |
Show flags inside replays. |
anticheat.notify-staff |
true |
Tell staff with replay.anticheat.notify when a clip is saved. |
anticheat.upload-to-discord |
false |
Also upload anticheat saves to the Discord webhook. |
anticheat.webhook.* |
disabled | A separate Discord webhook just for clips, with its own message layouts. It can attach the .replay file, an MP4 and the 3D page, and be limited to some triggers. |
anticheat.commands.flag / punish / manual |
empty | Console commands run after a clip is saved. Placeholders: {player} {uuid} {source} {check} {vl} {flags} {trigger} {reason} {id} {name}. |
anticheat.staff.* |
enabled | Clip a player when staff or the console run a punishment command such as /ban or /kick on them. Set commands, label, offline (also clip players who already left) and add-to-review. |
anticheat.sentinel.* |
enabled | Clip a player straight from Sentinel punishments (see Integrations). |
anticheat.review.enabled / page-size / log-lines |
true / 8 / 5 |
Review queue (/replay review), entries per page and log lines per entry. |
anticheat.punish-commands |
empty | Console commands run by the Punish button. Placeholders: {player} {source} {check} {id} {reviewer}. |
anticheat.<name>.* |
enabled | One section per anticheat (grim, shoreac, totemguard, polar, penguin and custom.<name>). Each has enabled, plugin, label and kick-patterns, and any option above can be overridden there. |
discord.yml
| Key | Default | Description |
|---|---|---|
discord.enabled / discord.webhook-url |
false / empty |
Upload saved replays to a Discord channel. Discord copies are kept forever. |
discord.max-upload-mb |
10 |
Discord's upload limit. Raise it if your Discord server has boosts. |
discord.delete-on-remove |
true |
Delete the Discord message when the saved replay is deleted. |
discord.placeholders |
server, network |
Your own placeholders, usable as {key} in every webhook text. |
discord.templates.* |
- | Layout of the saved, export and anticheat messages: username, avatar, content, embed, fields and allowed pings. |
hooks.yml
| Key | Default | Description |
|---|---|---|
coreprotect.enabled / merge-history |
true / true |
Show CoreProtect block history older than the recording. |
coreprotect.world-changes |
true |
Let CoreProtect supply fluids, fire, pistons, growth and other non-player block changes instead of Replay recording them. Needs merge-history. |
coreprotect.inspect-lines / inspect-seconds |
8 / 604800 |
Lines shown by /replay inspect and how far back it looks. |
voicechat.* |
see Voice chat | Simple Voice Chat recording and playback. |
database.yml
| Key | Default | Description |
|---|---|---|
type |
FILE |
FILE, MYSQL or MARIADB. |
table |
replay_segments |
Table name for MySQL and MariaDB. |
mysql.* |
localhost | Host, port, database, username, password. |
pool.* |
- | Connection pool size and timeouts. |
Integrations
All integrations are optional and detected automatically.
| Plugin | What it enables |
|---|---|
| CoreProtect | Adds older block history to replays and enables /replay inspect. Can also supply non-player world changes. Area replays can use or skip it with source. |
| Simple Voice Chat | Records what players say into replays and plays it back (see Voice chat). |
| GrimAC | Flags and punishments save a clip, show as call-outs during playback and fill the review queue. |
| ShoreAC, TotemGuard, PolarLoader, PenguinAntiCheat | Same as GrimAC. |
| Vulcan, Spartan, Matrix, AAC, NoCheatPlus | Same as GrimAC. NoCheatPlus has no flag events, so its punishments are caught from its kick messages. |
| Sentinel | Every punishment Sentinel saves (ban, mute, voice ban, kick, warn, also automatic ones and the web panel) saves a clip of the player. While active, the /ban style command watching is switched off. |
| WorldEdit / FastAsyncWorldEdit | WorldEdit edits show up in replays. |
| Any other anticheat | Call /replay flag <player> <source> <check> from its punishment commands, or add its event classes under anticheat.custom in anticheat.yml. |
Clips from anticheats and staff punishments appear in /replay review, where staff can watch, mark legit, punish or delete each one. Staff and Sentinel clips are not added to the review queue by default.
Voice chat
With Simple Voice Chat installed, Replay can record what players say and play it back from the speaker's replayed position, heard only by the people watching that replay. Recording is off by default and is a privacy matter, so tell your players before you turn it on.
Key (hooks.yml) |
Default | Description |
|---|---|---|
voicechat.enabled |
true |
Use the Simple Voice Chat hook. |
voicechat.record |
false |
Record what players say. |
voicechat.record-groups |
false |
Also record talk inside voice chat groups. |
voicechat.record-whispers |
true |
Also record whispering. |
voicechat.play |
true |
Play recorded voices while watching (only at normal speed). |
voicechat.distance / whisper-distance |
48.0 / 24.0 |
How far a voice carries in a replay, in blocks. |
Give a player replay.voice.exempt to never record their voice. Voice is also mixed into MP4 exports (see below).
Video and 3D exports
/replay saved export <id> turns a saved replay into an MP4 video and/or a 3D web page anyone can open in a browser. Both show what is happening (kills, hits, chat, flags) as text on screen and include a hit list, hit details, a player card and a fight card with target, health, damage, combo and CPS. Rendering runs on its own low-priority thread, one at a time, so it does not lag the server (export.max-queue caps how many wait). Finished files are kept in plugins/Replay/exports and reused.
Settings are in export.yml:
| Key | Default | Description |
|---|---|---|
export.enabled |
true |
Turn exports on or off. |
export.default-format |
both |
What /replay saved export <id> makes without a format: video, html or both. |
export.auto-export.enabled / formats |
true / [video, html] |
Make the video and/or 3D page automatically every time a replay is saved. Costs render time per save. |
export.capture-terrain |
true |
Remember the ground around the action when a replay is saved, so exports show real blocks. Older saves show a flat ground. |
export.terrain-radius-chunks |
8 |
How far around the action the world is saved. Bigger means more world and bigger files. |
export.textures.accept-download |
false |
Download the Minecraft textures (and sounds) from Mojang once. Only textures and sounds are kept. |
export.video.preset |
ULTRA |
FAST (960x540, 20 fps), BALANCED (1280x720, 24 fps), HIGH (1280x720, 30 fps), ULTRA (1920x1080, 30 fps) or SMOOTH (1280x720, 60 fps). Set export.video.custom: true to use your own width, height and fps. |
export.video.max-seconds |
90 |
Longest video. A longer replay is sped up to fit. |
export.video.max-mb |
0 |
Biggest file. 0 is automatic: discord.max-upload-mb minus a small headroom. |
export.video.camera |
AUTO |
AUTO follows the focus player, circles fights and cuts to explosions. Others: FIRST_PERSON, THIRD_PERSON, ORBIT, OVERVIEW. |
export.video.ffmpeg |
auto |
Use ffmpeg when found (auto), a path to it, or off. It makes videos much faster and smaller. If it fails, the built-in encoder is used. |
export.video.render-budget-seconds |
300 |
A video that would take longer is made lighter by itself. |
export.video.voice / sounds |
true / true |
Mix voice chat and game sounds into the video. Needs ffmpeg, and the sounds need the sound files (below). |
export.sounds.enabled |
true |
Derive sounds (steps, hits, blocks, mobs, explosions, ambient) from the recording for the video and the 3D page. Each group has its own switch: footsteps, combat, blocks, mobs, ambient. |
export.on-save.enabled |
false |
Send the .replay file, video and/or 3D page together in one Discord message as soon as a replay is saved. |
export.webhook.auto-send |
true |
Post every /replay saved export to the Discord webhook without typing send, when a webhook is set. |
export.delete-after-webhook |
true |
Delete the server copy of a file once it was sent to Discord (videos by default). It is made again if someone exports it later. |
Exports use the real Minecraft textures and sounds, which are not shipped with the plugin. Either put a resource pack at plugins/Replay/textures/pack.zip, or set export.textures.accept-download: true to download them from Mojang once. Without either, exports use plain generated textures and have no game sound.
The 3D page loads three.js from a CDN (export.html.three-url); point it at your own copy to work offline. More options (skins, sky and clouds, shadows, particles, HUD, panels, sound volumes and the look of mobs) are in export.yml.
Storage options
S3 storage
Replay can also send saved replays and exported videos and 3D pages to an S3 compatible bucket (Amazon S3, Cloudflare R2, MinIO). /replay saved link <id> then gives a link to the bucket copy when the replay website has none.
Key (s3.yml) |
Default | Description |
|---|---|---|
s3.enabled |
false |
Turn S3 storage on. |
s3.endpoint / region |
empty / us-east-1 |
Empty endpoint means Amazon S3 in the region. Otherwise the full address (R2 uses region auto). |
s3.bucket / prefix |
empty / replay/ |
Bucket and folder inside it. |
s3.access-key / secret-key |
empty | Keys. Write env:NAME to read one from an environment variable instead of the file. |
s3.path-style |
false |
true for MinIO and most self hosted setups. |
s3.upload-saved / upload-exports |
true / true |
What is sent: saved replays (and anticheat clips) and exported videos and 3D pages. |
s3.delete-on-remove |
true |
Delete the bucket copies when a saved replay is deleted. |
s3.max-upload-mb |
256 |
Replays bigger than this are not sent. |
s3.public-base-url |
empty | Public address of the bucket or its CDN. Empty uses temporary signed links valid for link-hours (default and maximum 168). |
Replay website
Every saved replay can be watched in a browser at replay.spxry.net: the MP4 video, an interactive 3D view and a "What happened" list of kills, hits, chat and flags. There is nothing to sign up for and no key to copy. The plugin connects on its own with your license key.
How it works
- On startup (after
site.connect-delay-seconds) the plugin registers your server with the site, using your license key and a server id it creates once inplugins/Replay/server-id.txt. If the site cannot be reached it retries everysite.retry-seconds. - Whenever a replay is saved, by
/replay saveor by an anticheat flag, the plugin renders the video and 3D page in the background (export.auto-export) and uploads them (site.on-export). Rendering runs on its own low-priority thread, one at a time, so it does not lag the server. - The replay shows up in your gallery. Run
/replay saved galleryfor the gallery link, or/replay saved link <id>for one replay.
Your server keeps its own copy of every file in plugins/Replay/exports unless export.delete-after-webhook removed it after a Discord post. The website is a mirror you can share. To remove replays from the website without deleting the server, use /replay delete site <id|all|player <name>>.
Opening your gallery
- Sign in with Discord at replay.spxry.net with the account that owns your Replay license. "Your servers" lists every server registered with your license and how many replays each has.
- Owner link.
/replay saved gallerygives a link with your owner key in it. Opening it signs that browser in to the gallery and removes the key from the address bar. Treat this link like a password. - Staff. Server staff sign in with Discord too, once you add them (see below). Their servers show up under "Shared with you".
- Single replays.
/replay saved link <id>gives a signed link that opens just that replay. It works for anyone, even on a private gallery, and stops working when the replay expires.
In the gallery you can search by title, player or check, filter by player, anticheat, review status (open, legit, punished) and date, and sort by date or length. Click a replay to watch the video, open the 3D view, read the event list, copy its link or download the files.
Staff access
Let your moderators watch replays without sharing the owner link:
- Sign in at replay.spxry.net and click Manage next to your server.
- Paste the person's Discord user ID and click Add staff. To copy an ID, turn on Developer Mode in Discord (Settings, Advanced), then right-click the person and pick Copy User ID.
- They sign in with Discord at replay.spxry.net and the gallery appears under "Shared with you".
Staff can watch, search, download and share every replay in that gallery, even while it is private. Only the license owner can add or remove staff. Removing someone takes effect right away. Each server can have up to 25 staff members, and staff are set per server.
Deleting a server
Click Manage next to the server on replay.spxry.net, scroll to Delete server, type the server name and confirm. The gallery, every replay, all links and the staff list are removed for good. Turn off site.enabled on that server first, otherwise Replay registers it again the next time it connects.
Private or public
site.access |
Who can see the gallery |
|---|---|
PRIVATE (default) |
You (signed in, or through the owner link), the staff you added, Spxry Studios admins, and anyone with a link to a single replay. |
PUBLIC |
Anyone with the gallery address can browse every replay. |
Changing site.access takes effect the next time the plugin connects to the site, for example after a restart.
Limits
| Limit | Value |
|---|---|
| Storage per server | 1024 MB |
| Replays per server | 500. At the cap the oldest replay is removed to make room. |
| Kept for | 30 days |
| Upload size | 12 MB per file, 30 MB per replay |
The plugin does not send a file bigger than site.max-file-mb (12); it stays on your server only. By default the video size is set automatically from discord.max-upload-mb (10 MB minus a small headroom), so it stays inside these limits. If you raise that value or export.video.max-mb above the site limit, those videos are not uploaded.
Site settings
All in config.yml under site:
| Key | Default | Description |
|---|---|---|
site.enabled |
true |
Connect to the replay website. Set to false to keep everything on your server. |
site.url |
https://replay.spxry.net |
Site address. |
site.server-name |
"" |
Name shown on your gallery. Empty uses the server name from server.properties. |
site.access |
PRIVATE |
PRIVATE or PUBLIC (see above). |
site.upload |
[video, html] |
What is uploaded for each replay: video (MP4) and/or html (3D page). |
site.replay-file |
false |
Also upload the raw .replay file, so it can be downloaded from the gallery. |
site.max-file-mb |
12 |
Files bigger than this are not uploaded. |
site.on-export |
true |
Upload automatically whenever a video or 3D page is made, including saves and anticheat clips. Which replays get rendered on save is set by export.auto-export. |
site.settle-seconds |
3 |
Wait this long after a replay's last file so everything goes up in one upload. |
site.connect-delay-seconds / retry-seconds |
20 / 600 |
First connection after startup, then the retry interval until it works. |
site.connect-timeout-seconds / timeout-seconds |
10 / 120 |
Network timeouts. |
site.max-events |
2000 |
Most event lines sent for the "What happened" list. |
Video and 3D page settings (size, length, terrain, colors) are in export.yml. export.max-queue caps how many renders wait at once.
Running your own site
Set site.enabled: false and use the Developer API (renderSaved, savedEvents, publishSaved, webLink) to send videos and 3D pages to your own panel or website.
Developer API
Replay has a public API for reading and controlling replays, managing saved replays, rendering exports, and listening to events. There is no public Maven artifact. Add the jar as a compileOnly dependency (never shade it) and declare Replay as a soft dependency.
softdepend: [Replay]
Getting the API
if (Bukkit.getPluginManager().isPluginEnabled("Replay")) {
ReplayApi api = ReplayApi.get();
}
ReplayApi.get() throws IllegalStateException if Replay is not enabled. Package: net.spxry.replay.api.
Methods
ReplayApi:
| Signature | Description |
|---|---|
boolean isRecording(Player player) |
Whether the player is being recorded right now. |
Optional<ActiveReplay> replay(Player viewer) |
The replay a player is watching. |
Collection<ActiveReplay> activeReplays() |
Every running replay. |
List<SavedReplay> savedReplays(UUID owner) |
Saved replays of one player, or all when null. |
Optional<SavedReplay> savedReplay(String id) |
A saved replay by id. |
CompletableFuture<Boolean> playSaved(Player viewer, String id, double speed) |
Start a saved replay. Completes with true if it started. |
CompletableFuture<Path> exportSaved(String id, Path target) |
Copy the compressed .replay file to target (downloads it from Discord if needed). |
boolean deleteSaved(String id) |
Delete a saved replay. false if it does not exist. |
boolean exportAvailable(ExportFormat format) |
Whether video (MP4) or HTML (3D page) export can run on this server. |
CompletableFuture<byte[]> renderSaved(String id, ExportFormat format) |
Render a saved replay and complete with the file bytes. |
CompletableFuture<Path> renderSaved(String id, ExportFormat format, Path target) |
Same, written to target. |
CompletableFuture<List<ReplayEventLine>> savedEvents(String id) |
The event timeline (kills, hits, flags, markers) of a saved replay. |
boolean webEnabled() |
Whether the replay website is enabled. |
Optional<String> webLink(String id) |
Browser link for a published replay. |
Optional<String> galleryLink() |
Link to this server's gallery. Empty when not connected. |
CompletableFuture<Optional<String>> publishSaved(String id, ExportFormat... formats) |
Render and publish to the replay website. Completes with the link, empty if publishing is off. |
ExportFormat is an enum: VIDEO and HTML. ReplayEventLine is a record: time, kind, text, actor.
ActiveReplay:
| Signature | Description |
|---|---|
String title() |
Replay title. |
Player host() |
The host. |
List<Player> members() |
Everyone watching. |
boolean active() |
Whether the replay is still running. |
boolean paused() / double speed() |
Playback state. |
long clock() |
Current replay time (epoch millis). |
long startTime() / long endTime() |
Replay bounds (epoch millis). |
void pause(boolean paused) |
Pause or resume. |
void speed(double speed) |
Set speed. |
void seek(long time) |
Jump to a time (epoch millis). |
void skip(double seconds) |
Skip forward, negative to rewind. |
void stop() |
End the replay. |
SavedReplay is a record: id, name, owner, ownerName, created, expires, title, world, from, to, inCloud (also uploaded to Discord).
Methods returning CompletableFuture finish off the main thread. Switch to the player's or region's scheduler before touching the Bukkit API in the callback.
Events
Package net.spxry.replay.api.event. Register with a normal @EventHandler.
| Event | Fires | Cancellable |
|---|---|---|
ReplayStartEvent |
Before a replay starts. Getters: getViewer, getTitle, getWorld, getStart, getEnd, getPlayers. |
Yes |
ReplayStopEvent |
When a replay ends. getReplay(). |
No |
ReplayViewerJoinEvent |
Before a player joins a shared replay. getReplay(), getViewer(). |
Yes |
ReplayViewerLeaveEvent |
When a guest leaves a shared replay. getReplay(), getViewer(). |
No |
ReplaySavedEvent |
After a replay is saved. getSaved(), isUploaded(). |
No |
ReplaySavedDeleteEvent |
When a saved replay is deleted. getSaved(). |
No |
ReplayExportEvent |
After a saved replay is rendered to MP4 or HTML. getSaved(), getFormat(), getBytes(). |
No |
ReplayPublishedEvent |
After a replay is published and has a link. getSaved(), getLink(). |
No |
ReplaySegmentStoredEvent |
Each time a piece of recording is written to storage. Getters: getTrack, getWorld, getStart, getEnd, getBytes, getStorage. |
No |
Events fire off the main thread when raised from async work (saving, storage writes, some stops). Check event.isAsynchronous() and switch to the right scheduler before using the Bukkit API.
@EventHandler
public void onStart(ReplayStartEvent event) {
if (event.getWorld().equals("spawn")) event.setCancelled(true);
}
ReplayApi api = ReplayApi.get();
api.savedReplays(player.getUniqueId()).stream().findFirst()
.ifPresent(saved -> api.playSaved(player, saved.id(), 1.0));
Back up every saved replay:
@EventHandler
public void onSaved(ReplaySavedEvent event) {
String id = event.getSaved().id();
ReplayApi.get().exportSaved(id, backups.resolve(id + ".replay"));
}
FAQ
Nothing was recorded for a player.
Check that they do not have replay.exempt with recording.allow-exempt: true, that the world is not listed in recording.no-replay-worlds, and that recording.enabled is true. Run /replay status to see their state. Recordings older than recording.keep-hours-on-disk are deleted. In PUNISH_ONLY mode nothing is kept until someone is punished.
I switched to MySQL and my old replays are gone.
Recordings are not moved between storage types. The old ones are still in plugins/Replay/recordings.
Saved replays disappeared.
They expire after saved.keep-days (anticheat.keep-days for anticheat saves). Discord copies are kept forever.
I want to free disk space.
Use /replay delete. It shows a preview of what would go, and nothing is deleted until you repeat the command with confirm.
My replays do not show up on the website.
Check that site.enabled is true, your license-key is set and valid for Replay, and that exports are on (export.enabled, export.auto-export). /replay saved gallery tells you when the gallery is not connected. A firewall that blocks outgoing HTTPS also stops uploads, and files bigger than site.max-file-mb are not uploaded. Only replays saved after the server connected are uploaded, unless you export older ones with /replay saved export <id>.
The video or 3D page has no textures or sound.
Textures and sounds are not shipped. Put a resource pack at plugins/Replay/textures/pack.zip or set export.textures.accept-download: true and run the export again. Sound in a video also needs ffmpeg on the server.
Someone else found my gallery.
Keep the owner link from /replay saved gallery private and set site.access: PRIVATE. Links to single replays only open that replay.
/replay menu only prints a message.
Dialogs need Paper 1.21.7+. /replay timeline and /replay review require them too.

