Skip to content

Profile functions

After you have your profile you can get all open information from the profile.

Get UUID from profile

Get MC users UUID.

js
profile.getUUID(); // Gets profiles uuid. Example 853c80ef3c3749fdaa49938b674adae6
profile.getFullUUID() // Gets profiles full uuid. Example 853c80ef-3c37-49fd-aa49-938b674adae6
ts
profile.getUUID(); // Gets profiles uuid. Example 853c80ef3c3749fdaa49938b674adae6
profile.getFullUUID() // Gets profiles full uuid. Example 853c80ef-3c37-49fd-aa49-938b674adae6

Get Username from profile

js
profile.getName(); //Gets profiles username. Example jeb_
ts
profile.getName(); //Gets profiles username. Example jeb_

Get Skin and Cape from profile

You will need to await these functions.

This is because first time you run them the wrapper will need to make request to get the skin data.

We don't do this when we get the profile because its a wasted request if you don't need the skin data.

If the user don't have an Cape it will return null

The model types are CLASSIC and SLIM

js
await profile.getSkinUrl(); // Url link for the skin of the profile.
await profile.getCapeUrl(); // Url link for the cape that the user uses, if the user don't use a cape it will return null
await profile.getOptifineCapeUrl() //Url link for optifine cape the user uses, if the user don't have a optifine cape it will return null
await profile.getModel(); // The model type, either SLIM or CLASSIC
ts
await profile.getSkinUrl(); // Url link for the skin of the profile.
await profile.getCapeUrl(); // Url link for the cape that the user uses, if the user don't use a cape it will return null
await profile.getOptifineCapeUrl() //Url link for optifine cape the user uses, if the user don't have a optifine cape it will return null
await profile.getModel(); // The model type, either SLIM or CLASSIC

Profile to JSON

Get your profile in JSON format

js
profile.toJson(); // returns json string of profile
ts
profile.toJson(); // returns json string of profile

Returns:

json
{
    "uuid": "uuid",
    "fullUuid": "full uuid",
    "name": "username",
    "skinUrl": "Url for skin",
    "capeUrl": "Url for cape",
    "optifineCapeUrl": "Url for Optifine cape",
    "model": "Model for skin"
}