minecraft-ping-ts
v1.0.4
Published
Ping Minecraft Servers
Downloads
10
Readme
minecraft-ping-js
A Minecraft Server Pinger in Node.js
Example
const pinger = require('minecraft-ping-js');
// Promise
pinger.pingWithPromise('localhost', 25565).then(console.log).catch(console.error);
// Async
pinger.ping('localhost', 25565, (error, result) => {
if (error) {
console.error(error);
} else {
console.log(result);
}
});
Output
{
"version": { "name": "Requires MC 1.8 / 1.16", "protocol": 754 },
"players": { "max": 200000, "online": 86460, "sample": [] },
"description": " §aHypixel Network §c[1.8-1.16]\n §e§lEASTER §b§lEVENT §c§l+ §a§lSALE",
"favicon": "data:image/png;base64,<LONG_DATA>",
"ping": 100
}