Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nomeyho/dart_mc_ping

A Dart implementation of the Minecraft ping protocol
https://github.com/nomeyho/dart_mc_ping

dart flutter minecraft package ping protocol

Last synced: about 1 month ago
JSON representation

A Dart implementation of the Minecraft ping protocol

Awesome Lists containing this project

README

        

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

[https://pub.dev/packages/dart_mc_ping](https://pub.dev/packages/dart_mc_ping)

## Usage
```
import 'package:dart_mc_ping/dart_mc_ping.dart';

final statusResponse = await ping('play.hivemc.com');
print('${statusResponse.ms} ms'); // 28ms
print(statusResponse.description.toColoredString()); // MOTD with ANSI colors and format
```