Reference¶
Client¶
Aiomcstats.
An asyncronous minecraft server stats library
- async aiomcstats.bedrock(host, port=19132, tries=3)[source]¶
Get status from Minecraft Bedrock server.
- Parameters
- Returns
Online or Offline status object.
- Return type
Union[BedrockStatus, BedrockOffline]
Models¶
- class aiomcstats.models.BedrockStatus(*args, **kwargs)[source]¶
Bedrock Status.
- Parameters
edition (str) – Game edition.
motd (str) – Message of the day.
protocol_version (int) – Version of the game protocol.
protocol_name (str) – Protocol name.
player_count (int) – Current number of players on the server.
player_max (int) – Max number of servers on the server.
server_id (int) – Server id.
latency (int) – Latency from api.
map (Optional[str]) – Map. Defaults to None.
gamemode (Optional[str]) – Current gamemode. Defaults to None.
gamemode_int (Optional[int]) – Current gamemode id. Defaults to None.
port_ipv4 (Optional[int]) – Server port for ipv4. Defaults to None.
port_ipv6 (Optional[int]) – Server port for ipv6. Defaults to None.
- class aiomcstats.models.Debug(*args, **kwargs)[source]¶
Info model
- Parameters
ping (bool) – If the Server List Ping (SLP) protocol was used. Added in version 1.7 and can not be turned off.
query (bool) – If the Query protocol was used. Default is off.
srv (bool) – If a Service record (SRV) was detected and used. They use the following format: _minecraft._tcp.domain.tld.
querymismatch (bool) – If the game port returned by the query protocol is not the same port as the Minecraft server is running on, the API assumes the query comes from another server.
- class aiomcstats.models.Offline(*args, **kwargs)[source]¶
Offline Bedrock Status.
- Parameters
online (boot) – Wether server online.
ip (boot) – Ip of server.
port (boot) – Port of server.
hostname (boot) – Hostname of server.
error (str) – Error which the request failed on.
- class aiomcstats.models.Status(*args, **kwargs)[source]¶
Info model
- Parameters
online (bool) – Wether server online.
ip (str) – Ip address of server.
port (int) – Port of minecraft server.
debug (Debug) – Debug data.
motd (Motd) – Motd of server.
players (Players) – Players in the server.
version (str) – Version of protocol.
map (str) – Current map.
protocol (Optional[int]) – Protocol number.
hostname (Optional[str]) – Hostname of server.
icon (Optional[str]) – Favicon of server.
software (Optional[str]) – Software running server.
plugins (Optional[Plugins]) – Plugins installed.
mods (Optional[Mods]) – Mods installed.
info (Optional[Info]) – Info provided in players rather then players.