A library for communication with a Minecraft client/server.
Find a file
btilm305 0e191e0f1c Fix packet error
Fixes "BAD PACKET ID" from being thrown whenever this.action == 1 as per [mc-dev](https://github.com/Bukkit/mc-dev/blob/master/net/minecraft/server/Packet207SetScoreboardScore.java#L32-L35).
2013-05-13 16:26:31 -04:00
src/main/java/ch/spacebase/mcprotocol Fix packet error 2013-05-13 16:26:31 -04: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 Server keep alive 2012-09-02 23:16:15 -07:00
README.md Call onConnect when a connection is made to a server, add documentation and utilities for responding to a server list ping. 2013-03-05 06:59:38 -08: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.

How to respond to a 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));

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.