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

outdated

A Dart implementation of the Minecraft ping protocol

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

fixnum, logging, raw

More

Packages that depend on dart_mc_ping