English | 简体中文
rcon2mc
rcon2mc is a Minecraft RCON protocol client library in Rust, used for executing commands remotely on a Java Edition Minecraft server.
Additionally, rcon2mc includes built-in wrappers for some Minecraft commands, allowing you to directly call these methods to execute commands.
Usage
Direct Usage rcon.send
(Compatible with all Minecraft versions from1.9 to 26.1)
use RconClient;
Using Wrapper Commands for Handling Result
Tested on 1.12.2, 1.16.5, 1.20.1, 1.21.11, and 26.1
use RconClient;
use ;
For specific built-in wrapper commands, please refer to the documentation.
Testings for built-in Commands in Different Versions
TBD: Not tested yet
Y: Tested Successfully
-: Will not be tested
None-playertest cases are testing commands executing when target is offline or commands that don't require a target.
Player-onlinetest cases are testing commands executing when target is online.
License
This project is licensed under the MIT License.