From c4593aa355d6ce9e2ac65cc2102cd9285a6b6449 Mon Sep 17 00:00:00 2001 From: TheLegendaryTrashcan <122332042+Ant767@users.noreply.github.com> Date: Fri, 5 Jul 2024 06:22:05 -0500 Subject: [PATCH] Fix example in README.md for 1.21 (#506) * Fix example in README.md for 1.21 * Update client.js * Update README.md --------- Co-authored-by: extremeheat --- README.md | 2 +- examples/client/client.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f895dd6..56760fc 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ const client = bedrock.createClient({ client.on('text', (packet) => { // Listen for chat messages from the server and echo them back. if (packet.source_name != client.username) { client.queue('text', { - type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '', + type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '', filtered_message: '', message: `${packet.source_name} said: ${packet.message} on ${new Date().toLocaleString()}` }) } diff --git a/examples/client/client.js b/examples/client/client.js index 7bbd028..9f17e57 100644 --- a/examples/client/client.js +++ b/examples/client/client.js @@ -10,7 +10,7 @@ const client = bedrock.createClient({ client.on('text', (packet) => { // Listen for chat messages and echo them back. if (packet.source_name != client.username) { client.queue('text', { - type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '', + type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '', filtered_message: '', message: `${packet.source_name} said: ${packet.message} on ${new Date().toLocaleString()}` }) }