Skip to content

Commit

Permalink
Merge pull request #1 from unlimitedcoder2/patch-1
Browse files Browse the repository at this point in the history
Fixed package name in readme
  • Loading branch information
nealol authored Jul 28, 2024
2 parents d289bdd + 25735aa commit c528988
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ Currently up-to-date with ModAPI release 0.2.1
## Installation

```bash
npx jsr add @lilith/hypixel-plugin-message-api
yarn dlx jsr add @lilith/hypixel-plugin-message-api
pnpm dlx jsr add @lilith/hypixel-plugin-message-api
bunx jsr add @lilith/hypixel-plugin-message-api
npx jsr add @lilith/hypixel-plugin-message
yarn dlx jsr add @lilith/hypixel-plugin-message
pnpm dlx jsr add @lilith/hypixel-plugin-message
bunx jsr add @lilith/hypixel-plugin-message
```

## Usage

```ts
import { readClientboundPacket, writeServerboundPacket } from '@lilith/hypixel-plugin-message-api'
import { readClientboundPacket, writeServerboundPacket } from '@lilith/hypixel-plugin-message'

const request: Buffer = writeServerboundPacket('ping', { version: 1})

Expand All @@ -31,4 +31,4 @@ const request: Buffer = writeServerboundPacket('ping', { version: 1})
const response: Buffer // Received buffer from clientbound plugin message with channel hypixel:ping

const packet = readClientboundPacket('ping', buffer) // { version: 1, response: "pong" }
```
```

0 comments on commit c528988

Please sign in to comment.