API Architecture
| Method | Returns | Description |
|---|---|---|
api.group() | GroupApi | Create, read, update, delete groups |
api.server() | ServerApi | Start, stop, query servers |
api.player() | PlayerApi | Player data, connections, messaging |
api.event() | EventApi | Subscribe to real-time events |
Event API Subcategories
| Method | Description |
|---|---|
api.event().group() | Group lifecycle events |
api.event().server() | Server lifecycle events |
api.event().persistentServer() | Persistent server events |
api.event().blueprint() | Blueprint lifecycle events |
Key Features
- Async-first design - All operations return
CompletableFuture(Java) or suspend functions (Kotlin) - Type-safe models - Strongly typed domain objects for Groups, Servers, Players
- Real-time events - Subscribe to changes via NATS messaging
- Adventure integration - Players implement Adventure’s
Audiencefor rich text messaging - Environment-aware - Auto-configuration from
SIMPLECLOUD_*environment variables
Quick Example
- Java
- Kotlin