1.0.4 • Published 3 years ago

minecraft-userdata v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Simple Minecraft-UserData

Introduction

A Simple Mojang api based minecraft module

Installation

npm install minecraft-userdata

Basic javascript example

const mc = require("minecraft-userdata")
mc.GetData("<username>").then(user => console.log(user.id))

Discord.js example

const Discord = require('discord.js');
const mc = require("minecraft-userdata")
const client = new Discord.Client();

client.on('ready', () => {
	console.log(`Logged in as ${client.user.tag}!`);
});

client.on('message', async message => {
	if (message.content === 'uuid') {
        let userid = mc.getUUID("Dream")
		message.channel.sent(`${userid}`);
	}
});

client.login('token');

Is it begin beginner-friendly

Its pretty easy for beginner

Whats new?

I made more easier for beginners

TypeError added

Is it buggy?

The package is at its first version,So it maybe buggy but it will be fixed in upcoming new version

Report Issue here