Skip to content

Storage and Sharing

MateoF24 edited this page Aug 15, 2026 · 3 revisions

Storage and Sharing

Everything OnTime keeps lives under config/ontime/.

config/ontime/
├── config.json                 the server settings and the defaults
├── player_preferences.json     who has hidden or muted their counters
├── history.json                every timer completion
├── _triggers.json              what each trigger has already seen
├── timers/
│   ├── round.json
│   └── speedrun.json
└── exports/
    └── round.json

One file per timer

Each timer is its own file, named after it. That means a timer can be copied, version-controlled, edited by hand or deleted on its own, and two people editing different timers never collide.

A file holds everything the timer is: its length, direction, position, colours, sound, titles, commands, triggers, repeat and sequence.

Executions are not in there. What is running is server state, saved with the world, and a timer that was counting when the server stopped resumes where it left off.

Writing

Every file is written atomically — to a temporary file, then moved into place. A crash halfway through a save cannot leave a half-written file behind.

Saving one timer rewrites that timer's file and nothing else.

Changes are gathered and written once per tick rather than once per change, so a command touching twenty players produces one write.

Sharing timers

/timer export round
/timer import round
/timer import round round_backup

export writes to config/ontime/exports/, and import reads from there. Giving a second name imports it under that name instead, which is how you keep both.

An exported file is a normal timer file. Copy it to another server, drop it into that server's exports/, and import it.

/timer clone <source> <dest> does the same thing without touching the disk, for a copy on the same server.

The history

history.json records every completion: which timer, when, and how long it ran. It is read by the Web Panel and is plain JSON if you want it elsewhere.

The trigger file

_triggers.json remembers what each trigger has already reacted to, so a one-time trigger stays one-time across a restart.

It cleans itself: entries belonging to timers or rules that no longer exist are dropped whenever it is read or written. Deleting a timer takes its entries with it.

The leading underscore keeps it out of the way of the timers beside it — a timer cannot be called _triggers.

Editing by hand

You can, and the mod will read it. Two things to know:

  • Do it while the server is stopped. A running server holds its own copy and will write over yours.
  • A file that cannot be read is skipped and logged, rather than stopping the mod from loading.

Clone this wiki locally