minestats v2.0.0
MineStats
The NPM package to gain Minecraft and Player information.
Todo list
- Username to UUID
- UUID to username
- Gain Server information
- Get player skins and
capes - Return the Minecraft skin PNG file
- other features
Installation
npm install minestats
While downloading this package, node-fetch will be included
Package Usage
Username to UUID
By gain the UUID from the username you can use this function with the Minecraft username of a player. It will return an object with the name
and id
which is the Minecraft UUID
of the player.
UsernameToUUID('HalloSouf').then(info => {
console.log(info);
});
Ouput:
{
"name": "HalloSouf",
"id": "4da5c3b5966842aa9da0a43a4e9d4f0f"
}
Server information
You can access Minecraft server information by using the ServerStats
function. Enter your Server IP, and it will return some useful information you can use in your Node.js application. Besides that, you can enter your server port as wel like play.turtlemc.net:25565
.
ServerStats('play.turtlemc.nl').then(info => {
console.log(info);
});
Minecraft skins
For now you can only gain the skin pictures with the following functions:
HeadAvatar('4da5c3b5966842aa9da0a43a4e9d4f0f').then(info => {
console.log(info);
});
AvatarRendered('4da5c3b5966842aa9da0a43a4e9d4f0f').then(info => {
console.log(info);
});
SkinRendered('4da5c3b5966842aa9da0a43a4e9d4f0f').then(info => {
console.log(info);
});
It will return a link to the Minecraft skin.
The next update will provide using usernames
to gain the Minecraft player skin.
Contact
If there are any issues with the package, please make contact by mail with issue@hallosouf.com or DM me on Discord HalloSouf#9342