{"repo":"takunology/MinecraftConnection","free":true,"listed":false,"github":"https://github.com/takunology/MinecraftConnection","clone":"git clone https://github.com/takunology/MinecraftConnection.git","description":"A library to support Minecraft programming and automation in C# language.","language":"C#","stars":24,"topics":["minecraft","rcon"],"license":"MIT","category":"workflow-automation","readme_excerpt":"MinecraftConnection 日本語版はこちら MinecraftConnection is a C# library for sending commands to a Minecraft server via RCON. It can be used for C# programming practice with Minecraft or for automation projects. The library supports not only vanilla Minecraft servers but also Spigot servers with plugins. Before running your program, make sure a Minecraft server that allows RCON connections is running. 1. Setup First, download the Minecraft Server software and run it in any game directory. A configuration file named server.properties will be generated. In this file, enable RCON access and set a password and port number for the connection. Example configuration: After editing, save the file and restart the server. Also, make sure you have started your Minecraft client and logged into the server. 2. Create a Project This library targets .NET Standard 2.1 or later. Here’s how to create a sample project using a .NET 9 console application. Install MinecraftConnection via the dotnet command: More details: https://www.nuget.org/packages/MinecraftConnection 3. Sample Programs Make sure both the Minecraft Server and Minecraft client (logged in) are running before executing any code. The following examples use top-level statements. Starting with version 3.x, the main class name changed from MinecraftCommands to MinecraftCommand. Since it implements IDisposable, you should either call Dispose() manually or use the using statement to release resources automatically. 3.1 Set the Time to 0 3.2 Laun","default_branch":null,"files":null,"tree":[],"storefront":"/r/takunology","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/takunology/MinecraftConnection/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}