mc_rcon 1.0.0

Dart native
Flutter Android iOS

A starting point for Dart libraries or applications.

mc_rcon #

A library for sending commands to Minecraft servers using the rcon protocol.

This package has only been tested with Minecraft servers, so it might not work with any other game server, PRs are welcome.

Also, this package doesn't support multi-packet responses from the server, the other packets will just be ignored.

Usage #

A simple usage example:

import 'package:mc_rcon/mc_rcon.dart';

main() {
  // connect to server
  Rcon rcon = await Rcon.createAndConnect("localhost", 25575, "password");
  
  // send command
  String res = await rcon.sendCommand("help");
  print(res);

  // close connection
  rcon.disconnect();
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
80
pub points
31%
popularity

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

darcros7@gmail.com

License

BSD (LICENSE)

More

Packages that depend on mc_rcon