# Limits

> The fixed limits of the Minekube plugin, the connector and the registry - recordings kept, restarts, slow-call reports, invites, claim codes and connections - each with where it is set.

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.

## Games

| 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](https://minekube.com/games/write/paper-api) |

## Networks in the Minekube plugin

These belong to [Connect's networks](https://minekube.com/guide/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/registry/src/Registry.ts` |
| Invite lifetime | 1 hour by default. `mk network invite --hours` takes 1 to 168 hours, one week. | `apps/registry/src/Registry.ts`, `packages/network/src/Registry.ts` |
| Claim code | 8 characters, valid for 15 minutes | `apps/registry/src/Registry.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` |

## Related

- [Performance](https://minekube.com/games/platform/performance): what we measured, as opposed to what is fixed.
- [Supported platforms](https://minekube.com/games/platform/supported-platforms): Minecraft and server versions.
