Skip to content

Get all data

JblusItsMe edited this page Sep 17, 2023 · 4 revisions
api.ping(ip, port, function(err, res) {
    if(err) {
        console.error(err); // Send error
    } else {
        console.log(res); // Return JSON
    }
});
> [email protected] getAll
> node ./test/getAll.js

{
  rinfo: { address: '144.76.82.180', family: 'IPv4', port: 19132, size: 143 },
  serverId: Long { low: -89382458, high: -1889079663, unsigned: false },
  pingId: Long { low: 166, high: 0, unsigned: false },
  game: 'MCPE',
  version: '1.20.10',
  name: '§o§e§lN§6G§r§7: §cPlay Now!',
  cleanName: 'NG: Play Now!',
  currentPlayers: '864',
  maxPlayers: '869',
  ackId: 368,
  connected: true
}

Clone this wiki locally