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

Related tags

Templates mc_rcon
Overview

A Dart SDK for interacting with a Minecraft server using the RCON protocol. Package on pub.dev

Features

Provides an API to connect to, log in to, send commands to, and receive data from a Minecraft server via the RCON protocol.

Getting started

Run flutter pub add mc_rcon_dart or add the following to your pubspec.yaml:

dependencies:
  mc_rcon_dart: ^<current_version>

Usage

See the example below. Full code example also in example.dart.

import 'package:flutter/foundation.dart';
import 'package:mc_rcon_dart/mc_rcon_dart.dart';

main() async {
  await createSocket("172.30.80.31", port: 25575);
  listen(onData);
  login("123");
  sendCommand("time set 0");
  close();
}

void onData(Uint8List data) {
  print(String.fromCharCodes(data, 12));
}

Additional information

  • The RCON documentation is here.
  • The documentation for Minecraft console commands is here.
  • The documentation for Socket (as of 2.18.1), which is used to communicate with the RCON server, is here.
  • Report bugs by making a new issue or send a merge request with the fix, but I'm pretty sure this is all working as is, and I don't expect the RCON protocol to change.
You might also like...

Lightning fast, strongly typed network protocol

 Lightning fast, strongly typed network protocol

What is Bolt Bolt is a network protocol written in Dart to send and receive strongly typed data objects. It is designed to be easy to use and to be as

Dec 3, 2022

a flutter socket client sdk for ezyfox-server

a flutter socket client sdk for ezyfox-server

ezyfox-server-flutter-client flutter client for ezyfox server Architecture Offical documentation https://youngmonkeys.org/ezyfox-flutter-client-sdk/ P

Dec 13, 2022

Woocommerce SDK for Flutter. The Complete Woo Commerce SDK for Flutter.

Woocommerce SDK for Flutter. The Complete Woo Commerce SDK for Flutter.

woocommerce Woocommerce SDK for Flutter. Getting Started Add the package to your pubspec.yaml and import. import 'package:woocommerce/woocommerce.dart

Dec 6, 2022

Socketio dart server and client - Full Socket.io implementation using Dart Lang

Socketio dart server and client - Full Socket.io implementation using Dart Lang

Getting Started Step 1: Run dart_server.dart Step 2: Android Emulator has proble

Jan 23, 2022

Dart-com-Shelf - Web server básico feito com dart e shelf, configurações de rotas e conexão com mysql.

A server app built using Shelf, configured to enable running with Docker. This sample code handles HTTP GET requests to / and /echo/message Running

Jan 3, 2022

Mentorup App developed using Flutter/Dart and Aqueduct as backend server is an app to help the startups

Mentorup App developed using Flutter/Dart and Aqueduct as backend server is an app to help the startups

Mentorup App developed using Flutter/Dart and Aqueduct as backend server is an app to help the startups of various domains initiated by the budding entrepreneurs to get guidance and funding from the mentors and funders respectively.

Dec 14, 2021

Buildpack dart - A server app built using Shelf, configured to enable running with Docker

Hosted at https://dart-buildpack-demo-ruyjilv5wq-uc.a.run.app/ Buildpack defined

Dec 15, 2022

Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.

Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.

Official Flutter packages for Stream Chat Quick Links Register to get an API key for Stream Chat Flutter Chat SDK Tutorial Chat UI Kit Sample apps Thi

Dec 25, 2022

Todo is an Simple Task Management App coded using Dart which is a peogramming language for Flutter SDK(2.5) supports Null Safety 📑🚩

Todo 📑 🚩 📌 Introduction Todo is an Simple Task Management App coded using Dart which is a peogramming language for Flutter SDK(2.5) supports Null S

Nov 5, 2022
Owner
Aidan Lok
Aidan Lok
Dart API Library for interacting with the TRON Network

Dart API Library for interacting with the TRON Network. Getting started In your

Mahdi K. Fard 5 Dec 20, 2022
A Flutter application that allows interacting with Pokemons, built using Clean Archtitecture structure and riverpod as state management.

pokedex Welcome to the Pokedex project! Getting Started Instructions to run: This project uses flutter version 3.0.3, Make sure you have that version

null 25 Nov 22, 2022
Flutter plugin for interacting with Accessibility Service in Android.

flutter_accessibility_service a plugin for interacting with Accessibility Service in Android. Accessibility services are intended to assist users with

Iheb Briki 10 Dec 22, 2022
Flutter app for interacting with Tesla Android.

Tesla Android Flutter app for Tesla Android. Please refer to https://tesla-android.gapinski.eu for release notes, hardware requirements and the instal

Tesla Android 16 Nov 25, 2022
Click - Interacting with svg in flutter

click Interacting with svg in flutter Getting Started This project is a starting point for a Flutter application. A few resources to get you started i

Samuel Abada 11 Dec 20, 2022
A beautiful mod installer for minecraft supporting custom repositories and more.

argoninstaller ⚠️ ⚠️ THIS PROJECT IS STILL IN EARLY DEVELOPMENT ⚠️ ⚠️ A beautiful mod installer for minecraft supporting custom repositories and more.

Tricked 16 Aug 28, 2022
A simple dart library for extracting the Open Graph protocol on a web pages

ogp_data_extract A simple dart library for extracting the Open Graph protocol on

KINTO 0 Jan 12, 2022
Dart Implementation of the ISO-8583 banking protocol.

Dart Implementation of the ISO-8583 banking protocol. Supports 03xx message class (File Actions Message - 1987) and is compatible with most PoS device

Mahdi K. Fard 11 Dec 8, 2022
UHI is envisioned as an open protocol for various digital health services.

UHI is envisioned as an open protocol for various digital health services. UHI Network will be an open network of End User Applications (EUAs) and participating Health Service Provider (HSP) applications. UHI will enable a wide variety of digital health services between patients and health service providers (HSPs) including appointment booking, teleconsultation, service discovery and others

National Health Authority 62 Jan 5, 2023
Flutter Client for the stability.ai GRPC protocol, should be compatible with grpc.stability.ai and hafriedlander/stable-diffusion-grpcserver

idea2art This is idea2.art, a Flutter client for the stability.ai GRPC API for Stable Diffusion. It's usable both with the cloud-based grpc.stability.

Hamish Friedlander 9 Dec 5, 2022