Skip to content

npm module that checks the status of a Minecraft server

License

Notifications You must be signed in to change notification settings

Lesleyvdp/mcstatus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

McStatus npm version number

Very simple npm package that gets the status of a Minecraft server.

Install

$ npm install mcstatus

Usage

To check the status of a Minecraft server just import the function, declare your options and then call checkStatus(). checkStatus() will return a Promise with a Status object.

Typescript:

import * as McStatus from 'mcstatus'

const options: McStatus.McServer = {
  host: 'mc.stephenduvall.me',
  port: 25565
}

McStatus.checkStatus(options).then(console.log)
// { ping: 501,
//   version: '1.14.4',
//   motd: 'Stephen\'s Christian Minecraft Server',
//   players: 0,
//   max_players: 20 }

Maintainer

Stephen DuVall

Future

  • Add the ability to pass hostname and port directly into the function without the McServer object
  • Add the ability to not give a port and default it to 25565

About

npm module that checks the status of a Minecraft server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%