Puzzle Artifact
Persists puzzle states across server restarts
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
artifactId | String | — | Generated Typewriter artifact identifier. Keep it stable after publication. |
How to use it
Add one artifact to enable persistence of puzzle states, attempts, solves and best times (saved every 30 seconds and at shutdown). Keep the generated artifactId. A page created with the old identifier puzzle-states is still read, with a warning in the log. If the stored data cannot be decoded, the extension refuses to overwrite it: restore the file or remove it. Note that the state of a player is dropped from memory when they disconnect: use the fact of the puzzle to keep a solved result. The artifact also holds the group solves of shared puzzles (isShared); it is required for them, since without it a restart makes the group pay the completion again.