1.0.0 • Published 6 years ago

mcdata-js v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

mcdata-js

A package for JS that allows people to retrieve MC data

Usage

A UUID is required to use other functions like mcdata.profile, and mcdata.nameHistory. Example of getting a uuid from a username:

const mcdata = require("mcdata-js");
mcdata.nameToUuid("AEJester", function (error, result) {
  if (err) {
    console.log(error)
  } else {
    console.log(result[0].id);
  }
});

An example of getting namehistory:

const mcdata = require("mcdata-js");
mcdata.getNameHistory("uuidHere", function(error, result) {
  console.log(result);
});

An Example of getting the skin and cape:

const mcdata = require("mcdata-js");
mcdata.getSkin("username", function(error, result) {
  console.log(result);
});
mcdata.getCape("username", function(error, result) {
  console.log(result);
});

Example of the user object:

const mcdata = require("mcdata-js");
var me = mcdata.User().name("username").uuid();
console.log(me.name+" "+me.uuid+" "+me.profile);

Notes

Please note that this Package is WIP, and changes will be made in the future.

Our Team

MemberRole
AEJesterCEO/Founder
LittleWholeCTO
RedstoneDaedalusDeveloper
SiebeDWHuman Relations
AwesomeSmileeProject Manager