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]
-
async
aiomcstats.
status
(host, port=None, tries=3)[source]¶ Get status from Minecraft server.
- Parameters
- Returns
Online or Offline status object.
- Return type
Union[Status, OfflineStatus]
Models¶
-
class
aiomcstats.models.
BedrockOffline
(*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.
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[int]) – 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.
OfflineStatus
(*args, **kwargs)[source]¶ Info model
- Parameters
online – bool
ip – str
port – int
debug – Debug
hostname – Optional[str]
error – str
-
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.