Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minecraft-protocol

Package Overview
Dependencies
Maintainers
7
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minecraft-protocol - npm Package Compare versions

Comparing version 1.40.2 to 1.40.3

2

docs/API.md

@@ -282,3 +282,3 @@ # Documentation

* formattedMessage -- the chat message preformatted
* positionid -- the chat type of the message. 1 for system chat and 2 for actionbar
* positionId -- the chat type of the message. 1 for system chat and 2 for actionbar

@@ -285,0 +285,0 @@ See the [chat example](https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/examples/client_chat/client_chat.js#L1) for usage.

# History
## 1.40.3
* Use consistent parameter naming for systemChat event
## 1.40.2

@@ -4,0 +7,0 @@ * Small chat.js fix (@frej4189)

{
"name": "minecraft-protocol",
"version": "1.40.2",
"version": "1.40.3",
"description": "Parse and serialize minecraft packets, plus authentication and encryption.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -161,3 +161,3 @@ const crypto = require('crypto')

client.emit('systemChat', {
positionid: packet.isActionBar ? 2 : 1,
positionId: packet.isActionBar ? 2 : 1,
formattedMessage: packet.content

@@ -164,0 +164,0 @@ })

@@ -51,3 +51,4 @@ /// <reference types="node" />

on(event: `raw.${string}`, handler: (buffer: Buffer, packetMeta: PacketMeta) => PromiseLike): this
on(event: 'playerChat', handler: ({ formattedMessage: string, message: string, type: string, sender: string, senderName: string, senderTeam: string, verified?: boolean })): this
on(event: 'playerChat', handler: (data: { formattedMessage: string, message: string, type: string, sender: string, senderName: string, senderTeam: string, verified?: boolean }) => PromiseLike): this
on(event: 'systemChat', handler: (data: { positionId: number, formattedMessage: string }) => PromiseLike): this
once(event: 'error', listener: (error: Error) => PromiseLike): this

@@ -54,0 +55,0 @@ once(event: 'packet', handler: (data: any, packetMeta: PacketMeta, buffer: Buffer, fullBuffer: Buffer) => PromiseLike): this

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc