Easier API for take WynnCraft informations! :)
const WynnCraftJS = require('wynncraft.js');
const WC = new WynnCraftJS();
let item = "< item name >";
WC.getItem(item).then(result => {
console.log(result);
}).catch(error => {
console.error(error);
});
const WynnCraftJS = require('wynncraft.js');
const WC = new WynnCraftJS();
let nickname = "< MC nickname >";
WC.getPlayerStats(nickname).then(result => {
console.log(result);
}).catch(error => {
console.error(error);
});
npm i wynncraft.js --save
If you need support visit https://discord.io/GamersHub and ask in the room #wynncraft-js! ;)