Skip to content
Get started

Limits

View as Markdown

These limits are constants in the source code. Each row names the file, so you can check it, and change it if you run your own build.

Limit Value Where
Recordings kept per game The newest 50 packages/runtime/src/Recording.ts
Restarts after a failure A game that fails more than 3 times in a minute stays off until its next revision packages/runtime/src/Supervisor.ts
Slow-call report A handler, Command start or task that holds the server thread for more than 10 ms is logged, with what explains it apps/runtime-core/.../Host.kt
Timer resolution 50 ms, one server tick Paper from TypeScript

These belong to Connect’s networks, in preview.

Limit Value Where
Java for the connector 22 or newer. On an older Java, the Paper plugin logs a warning and runs without the connector. apps/paper-runtime
Unused invites per network 100 apps/api/src/Api.ts
Invite lifetime 1 hour by default. mk network invite --hours takes 1 to 168 hours, one week. apps/api/src/Api.ts, packages/network/src/Registry.ts
Claim code 8 characters, valid for 15 minutes apps/api/src/Api.ts
Status report The connector reports its load every 10 seconds packages/connector/src/control.rs
Offline An instance whose control channel is silent for 30 seconds is offline apps/api/src/Instances.ts
Route cache in the relay An answer that places players is fresh for 1 second, one that places nobody for 250 ms; stale answers serve joins while the Minekube API is unreachable apps/relay/src/lib.rs
Opening a stream to an instance 3 seconds, then the relay tries the next instance apps/relay/src/lib.rs
Login code Works once, for 5 minutes apps/api/src/Accounts.ts
Account session An access token lasts 1 hour; the session ends after 30 days without use, and 90 days after the login at the latest apps/api/src/Accounts.ts
Players per connection between two instances 10,000 packages/connector/src/lib.rs
Idle timeout of a connection between two instances 10 seconds packages/connector/src/lib.rs

Was this helpful?