minecraft-protocol
Advanced tools
Comparing version 1.40.2 to 1.40.3
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263867
5187