mc_rcon 1.0.0 copy "mc_rcon: ^1.0.0" to clipboard
mc_rcon: ^1.0.0 copied to clipboard

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.

1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

More

Packages that depend on mc_rcon