# Locally
npm install -D mcsrvstat
# Or globally
npm install -g mcsrvstat
# Locally
yarn add -D mcsrvstat
# Or globally
yarn add -g mcsrvstat
import { Status } from "mcsrvstat";
const serv = new Status().getJavaStatus("GommeHD.net");
serv.then(GommeHD => {
console.log(GommeHD.version) // Return "1.8.x-1.20.x"
})
import { Status } from "mcsrvstat";
const serv = new Status().getBedrockStatus("135.125.105.65:19132");
serv.then(HiveMC => {
console.log(HiveMC.players.max) // Return 100001
})
- Create by ChokoJoestar
- mcsrvstat.us create by Anders G. Jørgensen