dart_mc_ping 1.0.3 copy "dart_mc_ping: ^1.0.3" to clipboard
dart_mc_ping: ^1.0.3 copied to clipboard

outdated

A Dart implementation of the Minecraft ping protocol (https://wiki.vg/Server_List_Ping)

dart_mc_ping #

A Dart implementation of the Minecraft ping protocol

Usage #

import 'package:dart_mc_ping/dart_mc_ping.dart';

final statusResponse = await ping('play.hivemc.com');
print('${statusResponse.ms} ms'); // 28ms

Note #

The text formatters of the server's MOTD are sometimes returned inside the text instead of using the dedicated fields of the ChatObject.

Example:

{ "text": "§3§l >> MyMOTD <<" }

instead of

{ "text": ">> MyMOTD <<", "color": "dark_aqua", "bold": true }
3
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Dart implementation of the Minecraft ping protocol (https://wiki.vg/Server_List_Ping)

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

fixnum, logging, raw

More

Packages that depend on dart_mc_ping