api.server().
Get Servers
Start Server
Stop Server
Update Server
Server Properties
Servers inherit properties from their group, but you can override them per-instance:Server Model
| Property | Type | Description |
|---|---|---|
serverId | String | Unique identifier |
groupName | String | Parent group name |
numericalId | long | Numerical ID within group (1, 2, 3…) |
state | ServerState | Current lifecycle state |
host | String | Server host machine |
ip | String | IP address |
port | int | Server port |
minMemory | int | Minimum memory (MB) |
maxMemory | int | Maximum memory (MB) |
maxPlayers | int | Player limit |
playerCount | int | Current online players |
properties | Map<String, String> | Custom metadata |
createdAt | Instant | Creation timestamp |
ServerState
| State | Description |
|---|---|
PREPARING | Copying template files |
STARTING | JVM process launching |
AVAILABLE | Ready for players |
INGAME | Has active players |
STOPPING | Shutdown in progress |
Environment Variables
Inside a running server, access server info without the API:SIMPLECLOUD_ prefix (uppercase, dashes become underscores).