1.2.1 • Published 1 month ago
mcsrvstat v1.2.1
Table of Contents
Install
With NPM
# Locally
npm install -D mcsrvstat
# Or globally
npm install -g mcsrvstat
With YARN
# Locally
yarn add -D mcsrvstat
# Or globally
yarn add -g mcsrvstat
Example
Java Server
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"
})
Bedrock Server
import { Status } from "mcsrvstat";
const serv = new Status().getBedrockStatus("135.125.105.65:19132");
serv.then(HiveMC => {
console.log(HiveMC.players.max) // Return 100001
})
Author
- Create by ChokoJoestar
- mcsrvstat.us create by Anders G. Jørgensen