Skip to content

Commit c4593aa

Browse files
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 <[email protected]>
1 parent 84c5231 commit c4593aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const client = bedrock.createClient({
5454
client.on('text', (packet) => { // Listen for chat messages from the server and echo them back.
5555
if (packet.source_name != client.username) {
5656
client.queue('text', {
57-
type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '',
57+
type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '', filtered_message: '',
5858
message: `${packet.source_name} said: ${packet.message} on ${new Date().toLocaleString()}`
5959
})
6060
}

examples/client/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const client = bedrock.createClient({
1010
client.on('text', (packet) => { // Listen for chat messages and echo them back.
1111
if (packet.source_name != client.username) {
1212
client.queue('text', {
13-
type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '',
13+
type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '', filtered_message: '',
1414
message: `${packet.source_name} said: ${packet.message} on ${new Date().toLocaleString()}`
1515
})
1616
}

0 commit comments

Comments
 (0)