mc-info-data
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

Mc-info-data

Easy to use api to get useful information from any server or user in Minecraft.

Why use?

🌀 Created with TS.

📦 Object Oriented

💥 Easy to use

ChangeLog

+ New class to get UUID more easy
- Innecesay code lol

Support

You can find support on this discord.
https://discord.gg/xqS8PZB

Examples

const { MCInfo } = require("mc-info-data");
const mcinfo = new MCInfo();

// To get information from a server.
mcinfo.server("hypixel.net").then(console.log);

/*
Response
{
  ip: '172.65.229.74',
  port: 25565,
  motd: {
    raw: [
      '             §aHypixel Network  §c[1.8-1.16]',
      '        §6§lSKYBLOCK 0.11 §7- §5§lDWARVEN MINES'
    ],
    clean: [
      '             Hypixel Network  [1.8-1.16]',
      '        SKYBLOCK 0.11 - DWARVEN MINES'
    ],
    html: [
      '             <span style="color: #55FF55">Hypixel Network  </span><span style="color: #FF5555">[1.8-1.16]</span>',
      '        <span style="color: #FFAA00"><span style="font-weight: bold;">SKYBLOCK 0.11 </span></span><span style="color: #AAAAAA">- </span><span style="color: #AA00AA"><span style="font-weight: bold;">DWARVEN MINES</span></span>'
    ]
  },
  players: { online: 108336, max: 200000 },
  version: 'Requires MC 1.8 / 1.16',
  hostname: 'mc.hypixel.net',
}
*/

If you want to get the nickname history it is very easy!

const {MCInfo} = require("mc-info-data");
const mcinfo = new MCInfo();
mcinfo.history("Rappi").then(console.log);
/*
Response
[
  { name: 'ChipyKhao2014' },
  { name: 'RaulFTW98', changedToAt: 1423070842000 },
  { name: 'Parvi', changedToAt: 1432485897000 },
  { name: 'XenomYTB', changedToAt: 1436292345000 },
  { name: 'Jake_Saw', changedToAt: 1442421363000 },
  { name: 'zRappi', changedToAt: 1472142039000 },
  { name: 'Rappi', changedToAt: 1484933586000 }
]
*/

Methods.

server() // Receive an IP parameter to search for information.

history() // Receive parameter a nickname to search for information

namemcLikes() // Receive parameter from a server to search for information

body() // Receive a nickname parameter, show the body of a skin

skin() // Receive a nickname parameter show a skin to download

icon() // Get a minecraft server IP as a parameter

Package Sidebar

Install

npm i mc-info-data

Weekly Downloads

3

Version

1.8.1

License

MIT

Unpacked Size

34.9 kB

Total Files

37

Last publish

Collaborators

  • kapone