Automatic protocol negotiation for node-minecraft-protocol clients
Usage:
var mc = require('minecraft-protocol-auto');
mc.createClientAsync(options, function(err, client) {
// do stuff with client
});
options
should include the host, port, and usual options for node-minecraft-protocol createClient()
;
client
is set to a created node-minecraft-protocol client object if successful. This
module attempts to automatically use the correct protocol, by first pinging the server
and enabling a matching protocol. Currently tested with the following server software:
FML|HS
handshakeOther versions may work as they are added to node-minecraft-protocol.
https://github.com/PrismarineJS/node-minecraft-protocol/issues/327
MIT