mc_rcon_dart 1.0.2 copy "mc_rcon_dart: ^1.0.2" to clipboard
mc_rcon_dart: ^1.0.2 copied to clipboard

outdated

A Dart SDK for interacting with a Minecraft server using the RCON protocol.

example/example.dart

import 'dart:typed_data';
import 'package:mc_rcon_dart/mc_rcon_dart.dart';

main() async {
  await createSocket("172.30.80.31", port: 25575); // Replace RCON server info.
  listen(onData);
  login("123"); // Replace password to the RCON server.
  sendCommand("time set 0"); // This can be any valid Minecraft console command.
  close();
}

void onData(Uint8List data) {
  print(String.fromCharCodes(data, 12));
}
13
likes
0
points
73
downloads

Publisher

verified publisherlok.ninja

Weekly Downloads

A Dart SDK for interacting with a Minecraft server using the RCON protocol.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on mc_rcon_dart