mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
commit
e638bafd3a
@ -10,7 +10,7 @@ module.exports = function (client, options) {
|
|||||||
debug('pinging', options.host)
|
debug('pinging', options.host)
|
||||||
// TODO: use 0xfe ping instead for better compatibility/performance? https://github.com/deathcap/node-minecraft-ping
|
// TODO: use 0xfe ping instead for better compatibility/performance? https://github.com/deathcap/node-minecraft-ping
|
||||||
ping(options, function (err, response) {
|
ping(options, function (err, response) {
|
||||||
if (err) { client.emit('error', err) }
|
if (err) { return client.emit('error', err) }
|
||||||
debug('ping response', response)
|
debug('ping response', response)
|
||||||
// TODO: could also use ping pre-connect to save description, type, max players, etc.
|
// TODO: could also use ping pre-connect to save description, type, max players, etc.
|
||||||
const motd = response.description
|
const motd = response.description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user