Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rcon Protocol api for developing projects where access to the minecraft server via rcon is required.

License

Notifications You must be signed in to change notification settings

TeamLeak/RconProtocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RconProtocol

This is a library for the Source RCON Protocol, it is intended for raw use; there are no presets or built-in commands.

Usage

Maven:

<dependency>
  <groupId>io.github.lkapitman</groupId>
  <artifactId>app</artifactId>
  <version>1.2.0</version>
</dependency>

Gradle:

implementation 'io.github.lkapitman:app:1.2.0'

Examples:

// Connects to 127.0.0.1 on port 27015
Rcon rcon = new Rcon("127.0.0.1", 27015, "mypassword".getBytes());

// Example: On a minecraft server this will list the connected players
String result = rcon.command("list");

// Display the result in the console
System.out.println(result);

When connecting to the rcon server, an AuthenticationException will be thrown if the password is incorrect.

Download

The latest packed .jar, ready to use as a library, is available here.

About

Rcon Protocol api for developing projects where access to the minecraft server via rcon is required.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages