add libraries to the docs (will probably re-design later)
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 2m36s

This commit is contained in:
Lee
2024-04-20 02:04:42 +01:00
parent 57a45a4c05
commit b4076c850a
10 changed files with 209 additions and 32 deletions

View File

@ -0,0 +1,28 @@
---
title: Javascript Library
description: The Javascript library for Minecraft Utilities is a simple way to interact with the plugin from using Javascript!
---
# Javascript Library
This is the Javascript library for Minecraft Utilities.
## Installation
To use the Javascript library, you can run the following command:
```bash
npm install mcutils-library
```
## Usage
This is a simple example of how to use the Javascript library to get a player's information.
```javascript
import { getPlayer, CachedPlayer } from "mcutils-library";
const cachedPlayer = await getPlayer(playerId);
console.log(player);
```