Javascript-Library/README.md
Liam dcf147167d
Some checks failed
Publish Package / build (push) Has been cancelled
update readme
2024-04-15 09:02:07 +01:00

651 B

Minecraft Utilities - Javascript Library

The JavaScript library for the Minecraft Utilities API.

Usage

Install the package using npm:

npm install mcutils-library

Get player:

import { getPlayer } from "mcutils-library";

const cachedPlayer = await getPlayer(playerId);
const { player } = cachedPlayer;

console.log(player);

Get Server:

import { getServer } from "mcutils-library";
import JavaMinecraftServer from "mcutils-library/dist/types/server/javaServer";

const cachedServer = await getServer(ServerPlatform.Java, "hypixel.net");
const { server } = cachedServer;

console.log(server);