info

This method is used to retrieve basic information about a player on CubedCraft.

.info(UUID)

Get basic information about a player on CubedCraft.

Parameter

Type

Required

Description

UUID

string

true

The UUID of the player you want info for

Example:

// Dependencies
const CubedCraft = require('cubed-api');

// Getting the player info
CubedCraft.API.player.info('4de211d9-2e6d-41a8-830f-c20ba2359654').then(info => {
    console.log(info);
})

You can easily get a player's UUID with the .playerUUID() method, view the documentation here: https://pondwadermc.gitbook.io/cubed-api/documentation/utils/playeruuid

Example Response:

{
  player: {
    uuid: '4de211d9-2e6d-41a8-830f-c20ba2359654',
    username: 'PondWader',
    online: true,
    first_join: 1532544776964,
    last_logout: 1618593587911,
    points: 19383,
    version_protocol: 47,
    server: 'PS_Hole',
    guild_name: 'TNT'
  }
}

Last updated

Was this helpful?