MCProtocolLib/README.md

38 lines
1 KiB
Markdown
Raw Normal View History

2012-08-12 21:56:36 -04:00
<b><center><h1>mc-protocol-lib</h></center></b>
==========
<b>About mc-protocol-lib</b>
--------
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.
2012-09-09 00:48:49 -04:00
<b>Server List Ping</b>
--------
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()));
2012-09-09 00:48:49 -04:00
<b>Chat Bot Example</b>
--------
2012-09-09 00:35:29 -04:00
See ch.spacebase.mcprotocol.example.ChatBot
2012-08-12 21:56:36 -04:00
<b>Building the Source</b>
--------
mc-protocol-lib uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.
<b>License</b>
---------
mc-protocol-lib is licensed under the <b>[MIT license](http://www.opensource.org/licenses/mit-license.html)</b>.