Server Status¶
Source code in minecraftstatus/server_status.py
clean_motd property ¶
Get the clean Message Of The Day (MOTD) of the server
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The clean MOTD (without color codes) |
favicon property ¶
Get the server favicon
Returns:
| Name | Type | Description |
|---|---|---|
BytesIO | BytesIO | An io.BytesIO object containing the favicon, or None if not available |
game_map property ¶
Get the game map of the server
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The game map |
gamemode property ¶
Get the game mode of the server
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The game mode |
host property ¶
Get the host name of the server
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The host name (same as the IP address) |
is_online property ¶
Check if the server is online
Returns:
| Name | Type | Description |
|---|---|---|
bool | bool | True if the server is online, False otherwise |
latency property ¶
Get the latency of the server
Returns:
| Name | Type | Description |
|---|---|---|
int | int | Latency in milliseconds, -1 if the server is offline |
max_players property ¶
Get the maximum players the server can accommodate
Returns:
| Name | Type | Description |
|---|---|---|
int | int | The maximum number of players |
motd property ¶
Get the message of the day (MOTD) of the server
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The MOTD (with color codes) |
online_player_count property ¶
Get the online player count of the server
Returns:
| Name | Type | Description |
|---|---|---|
int | int | The number of online players |
online_players property ¶
Get a list of online players on the server
Returns:
| Name | Type | Description |
|---|---|---|
list | list | A list of dictionaries containing player information |
port property ¶
Get the port the server is running on
Returns:
| Name | Type | Description |
|---|---|---|
int | int | The port number, -1 if not available |
version_info property ¶
Get the descriptive version info of the server
Returns:
| Name | Type | Description |
|---|---|---|
dict | dict | The version information |