A library for communication with a Minecraft client/server.
Find a file
2013-11-17 15:11:39 -08:00
src/main/java/ch/spacebase/mcprotocol Pre-1.7 misc. fixes (Waiting for 1.7.2 MCP update) 2013-11-01 17:43:53 -07:00
.gitignore Initial commit 2012-08-12 18:56:36 -07:00
LICENSE.txt Initial commit 2012-08-12 18:56:36 -07:00
pom.xml Updated maven URLs 2013-11-17 15:11:39 -08:00
README.md Update README.md 2013-11-01 15:39:42 -07:00

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.