[This is preliminary documentation and is subject to change.]
The Server type exposes the following properties.
Properties
| Member | Description | |
|---|---|---|
| CheckConnectionsInterval | ||
| CheckIdlesInterval | Interval at which Server checks for idle players (to kick idlers). | |
| CPUUsageLastMinute | ||
| CPUUsageTotal | ||
| ExternalIP | External IP address of this machine, as reported by checkip.dyndns.org | |
| GCInterval | Interval at which Server checks whether forced garbage collection is needed. | |
| InternalIP | Internal IP address that the server's bound to (0.0.0.0 if not explicitly specified by the user). | |
| IsMonitoringCPUUsage | ||
| IsRunning | ||
| Players | List of online players.
This property is volatile and can change when players connect/disconnect,
so cache a reference if you need to refer to the same snapshot of the
playerlist more than once. | |
| Port | Number of the local listening port. | |
| StartTime | Time when the server started (UTC). Used to check uptime. | |
| Uri | Minecraft.net connection URL. |