Auth Profile Functions
Now when you have an authprofile, heres what you can do.
Check if the microsoft account has Minecraft Copy
js
authProfile.checkOwnership() // False or Truets
authProfile.checkOwnership() // False or TrueGet profiles username
js
authProfile.getName();ts
authProfile.getName();Get profiles UUID
js
authProfile.getUUID();ts
authProfile.getUUID();Gets profiles skin
This will return the active skin, with the auth profiles we return an skin object
js
const skin = authProfile.getActiveSkin();
console.log(skin.url); // The url for the skints
const skin = authProfile.getActiveSkin();
console.log(skin.url); // The url for the skinGets profiles Cape
This will return the activated Cape, if the cape is deactivated it will return null
js
const cape = authProfile.getActiveCape();
console.log(cape.url) // Capes url
console.log(cape.alias) // Capes namets
const cape = authProfile.getActiveCape();
console.log(cape.url) // Capes url
console.log(cape.alias) // Capes nameGet all skins or all capes
js
const capes = authProfile.getCapes(); // List of all the users capes
const skins = authProfile.getSkins(); // List of all the users skinsts
const capes = authProfile.getCapes(); // List of all the users capes
const skins = authProfile.getSkins(); // List of all the users skinsChange skin
You can both upload an skin or set it from an url Both need to be in PNG format
URL version
js
authProfile.changeSkin("http://example.com/skin.png", "classic")ts
authProfile.changeSkin("http://example.com/skin.png", "classic")Buffer version
js
const fs = require("fs");
const buffer = fs.readFileSync("./skin.png");
authprofile.changeSkin(buffer,"classic")ts
import fs from "fs";
const buffer = fs.readFileSync("./skin.png");
authprofile.changeSkin(buffer,"classic")Reset skin
Removes current skin
js
authProfile.resetSkin()ts
authProfile.resetSkin()Activate Cape
Activates
js
authProfile.activateCape()ts
authProfile.activateCape()Get profiles attributes
This returns attributes in object form.
js
const attributes = authProfile.getAttributes()ts
const attributes = authProfile.getAttributes()