@javahampus/minecraft-api
v1.0.1
Published
A Minecraft API wrapper to easily gather information about a Minecraft server.
Downloads
3
Readme
minecraft-api
A Minecraft API wrapper to easily gather information about a Minecraft server.
Installation
npm i @javahampus/minecraft-api
Example
import { ServerManager } from '@javahampus/minecraft-api' // Import the package
let mc = new ServerManager('play.server.net')
async function displayPlayers() {
let players = await mc.getPlayerCount();
let max = await mc.getMaxPlayers();
return console.log(`${players}/${max}`)
}
// ...