MinecraftRcon 1.0.0
See the version list below for details.
dotnet add package MinecraftRcon --version 1.0.0
NuGet\Install-Package MinecraftRcon -Version 1.0.0
<PackageReference Include="MinecraftRcon" Version="1.0.0" />
paket add MinecraftRcon --version 1.0.0
#r "nuget: MinecraftRcon, 1.0.0"
// Install MinecraftRcon as a Cake Addin #addin nuget:?package=MinecraftRcon&version=1.0.0 // Install MinecraftRcon as a Cake Tool #tool nuget:?package=MinecraftRcon&version=1.0.0
Minecraft Rcon
Description
A simple program for remote management of a Minecraft server using the RCON protocol.
Features
- Authentication using RCON password.
- Sending commands to the server using the RCON protocol.
Requirements
- .NET 5.0 or later
Configuration
Default settings, such as host address, port, and RCON password, can be changed in the Terminal.cs
file under the Default Configuration
section.
Running the Program
To run the program as a standalone application, follow these steps:
Open a terminal in the project directory.
Run the application using the following command:
dotnet run
Upon launch, enter the required information such as host address, port, and RCON password.
Using as a NuGet Package
If you want to use this project as a NuGet package in your own project, follow these steps:
Install the NuGet package using the package manager console:
Install-Package MinecraftRcon
In your code, you can use the
Client
class to interact with the Minecraft server using RCON:using MinecraftRcon; class Program { static async Task Main(string[] args) { var host = "your_server_host"; var port = 25575; var password = "your_rcon_password"; using var client = new Client(host, port); if (await client.AuthenticateAsync(password)) { var command = "your_minecraft_command"; var response = await client.SendCommandAsync(command); Console.WriteLine(response?.Body ?? "Command failed"); } else { Console.WriteLine("Authentication failure"); } } }
Author
rallez
Contact
Discord: rallez Email: rallezg1@gmail.com
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.