Skip to content

A Minecraft Server's RCON Implementation for C# / Mono

License

Notifications You must be signed in to change notification settings

ShineSmile/MineCraftServerRCON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MinecraftServerRCONSharp

A thread-safe Minecraft server's RCON implementation for C# and Mono.

Example usage: Change the "ABC" player's game mode

  using System;
  using MinecraftServerRCON;
  
  namespace RCONTest
  {
	class Program
	{
		using(var rcon = RCONClient.INSTANCE)
		{
	    		rcon.setupStream("127.0.0.1", password: "123");
	    		answer = rcon.sendMessage(RCONMessageType.Command, "gamemode creative ABC");
	    		Console.WriteLine(answer.RemoveColorCodes());
		}
	}
  }

Setup

The fasted way to use this library is to use NuGet: https://www.nuget.org/packages/RCONServer/. Further, you can also download the library from the releases page.

About

A Minecraft Server's RCON Implementation for C# / Mono

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages