Skip to content

hebrecht/mc-protocol-lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mc-protocol-lib

About mc-protocol-lib

mc-protocol-lib is a simple library for communicating with a Minecraft client/server. It aims to allow people to make custom bots, clients, or servers for Minecraft easily.

Server List Ping

When you receive a server list ping packet when listening to a server, respond by calling connection.disconnect(Util.formatPingResponse(motd, players, maxplayers));

When you are sending a ping request, do the following: connection.send(new PacketServerPing()); connection.send(Util.prepareClientPingData(connection.getHost(), connection.getPort()));

Chat Bot Example

See ch.spacebase.mcprotocol.example.ChatBot

Building the Source

mc-protocol-lib uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.

License

mc-protocol-lib is licensed under the MIT license.

About

A simple library for communication to a Minecraft client/server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%