# OnTime 2.0.0
This release is a major overhaul. The internal architecture has been rewritten to centralize all display logic server-side, introduce a public API, and clean up code.
---
## ⚠️ Breaking Changes
- **All display settings are now server-side.** Position, colors, scale, and sound are configured once on the server and automatically pushed to every connected client. Individual players can no longer change these settings themselves.
- Permission level for all `/timer` commands has been raised to **op level 4**.
---
## ✨ New
### `/timer scale <value>`
Sets the timer display scale globally for all players. Accepts values from `0.1` to `5.0`.
### Public API
Other mods can now interact with OnTime programmatically via `OnTimeAPI`:
- Create, remove, start, stop, pause and query timers
- Register custom command placeholders
- Receive the API instance at initialization via the entrypoint system:
- **Fabric**: `ontime` entrypoint in `fabric.mod.json`
- **NeoForge / Forge**: `InterModComms` with method `"register"`
### PlaceholderAPI Integration (Fabric Only)
When [Placeholder API](https://modrinth.com/mod/placeholder-api) is present, OnTime automatically registers placeholders for active and named timers: `%ontime:active_time%`, `%ontime:active_name%`, `%ontime:timer_time:<name>%`, and more. See the [wiki](https://github.com/MateoF024/ontime/wiki/Fabric-PlaceholderAPI) for the full list.
---
## 🔧 Changes
- **Client–server sync rewritten.** Display config (position, preset, colors, scale, sound) is now sent to clients as a dedicated packet on join and on every server-side config save. Clients are purely passive receivers.
- **Permission system unified.** The `hide`, `silent`, `position`, `sound`, and `scale` commands are now admin-only. Operators can still target individual players with `hide` and `silent`.
- **Codebase cleanup.** Removed redundant abstractions, dead code paths, and inconsistencies between loader implementations. Internal packet and platform layers have been simplified.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }