tntwars
This method is used to retrieve tntwars information for a player on CubedCraft.
.tntwars(UUID)
Get tntwars information for 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.tntwars('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',
coins: 5460,
kills: 2491,
deaths: 1332,
wins: 364,
score: 7324,
first_joined: 0,
last_joined: 1618417747684,
playtime: 236119254
}
}
Last updated
Was this helpful?