deathcap / node-minecraft-protocol-auto

Automatic protocol negotiation for node-minecraft-protocol (moved to node-minecraft-protocols)
https://github.com/deathcap/node-minecraft-protocols
MIT License
1 stars 0 forks source link

minecraft-protocol-auto

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:

Other versions may work as they are added to node-minecraft-protocol.

History

https://github.com/PrismarineJS/node-minecraft-protocol/issues/327

License

MIT