0.1.13 • Published 2 years ago

minecraftjs-npm v0.1.13

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

NodeJS Minecraft Wrapper

Installation

Install minecraftjs with npm

  npm install minecraftjs-npm

Features

  • Get user UUID by name
  • Get profile info
  • Check if user is premium by UUID
  • Check if server is blocked by Mojang
  • Get server info
  • Match username and UUID
  • Get username by UUID

Usage/Examples

Get UUID by name

const mc = require("minecraftjs-npm")

let uuid = mc.nameToUuid("Notch")
console.log(uuid)

Get name by UUID

const mc = require("minecraftjs-npm")

let name = mc.uuidToName("069a79f444e94726a5befca90e38aaf5")
console.log(name)

Get profile info

const mc = require("minecraftjs-npm")

let info = mc.profileInfo("069a79f444e94726a5befca90e38aaf5")
console.log(info)

Match name and UUID

const mc = require("minecraftjs-npm")

let match = mc.matchProfile("Notch", "069a79f444e94726a5befca90e38aaf5")

if (match) {
    console.log("OK")
} else {
    console.log("ERROR")
}

Check if user is premium

const mc = require("minecraftjs-npm")

let premium = mc.isPremium("069a79f444e94726a5befca90e38aaf5")

if (premium) {
    console.log("premium")
} else {
    console.log("cracked")
}

Get server info

const mc = require("minecraftjs-npm")

let info = mc.serverInfo("hypixel.net")
console.log(info)

Check if server is blocked by Mojang

const mc = require("minecraftjs-npm")

let blocked = mc.isServerBlocked("hypixel.net")

if (blocked) {
    console.log("Server is blocked")
} else {
    console.log("Server is not blocked")
}

Author

NexonDEV

License

MIT

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago