minecraft-player
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

minecraft-player Travis CI Build Status

Minecraft player information.

NPM Badge

Install

npm install minecraft-player

Usage

const minecraftPlayer = require("minecraft-player");
 
(async () => {
    const { uuid } = await minecraftPlayer("Notch");
 
    console.log(uuid);
    //=> "c7da90d5-6a05-4217-b94a-7d427cbbcad8"
})();

API

minecraftPlayer(player)

player

Type: string

Username or UUID of the player.

Player data

uuid

Type: string

The player's UUID.

username

Type: string

The player's username.

usernameHistory

Type: array of objects

The player's username history in order from oldest to newest.

username

Type: string

The player's username.

changedAt

Doesn't exist for the oldest username.

Type: string

A timestamp of when the skin was set.

textures

Type: object

The player's skin information.

custom

Type: boolean

Whether the player has set a custom skin.

slim

Type: boolean

Whether the skin is using the slim (Alex) model.

skin.url

Type: string

A url which resolves as the player's skin.

skin.data

Type: string

The player's skin as a base64 encoded png.

createdAt

Type: string

A timestamp of when the player was created.

Package Sidebar

Install

npm i minecraft-player

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

5.49 kB

Total Files

6

Last publish

Collaborators

  • richienb