valleycraft-node
v1.0.2
Published
This is the valleycraft.de API wrapper
Downloads
11
Maintainers
Readme
valleycraft-node
This is the public valleycraft.de API wrapper
Installation
npm install --save valleycraft-nodeUsage
Example: Getting our QueryObject
const valleyAPI = require("valleycraft-node")
valleyAPI.query().then((result) => {
console.log(result)
}).catch(error => {
console.error(error)
})Example: Getting UUID of a player by username
const valleyAPI = require("valleycraft-node")
valleyAPI.resolveUUID("example").then((result) => {
console.log(result)
}).catch(error => {
console.error(error)
})Example: Getting the user statistics a user reached at our server
const valleyAPI = require("valleycraft-node")
valleyAPI.resolveUserStats("example").then((result) => {
console.log(result)
}).catch(error => {
console.error(error)
})