Skip to content

Commit

Permalink
Fix example in README.md for 1.21 (#506)
Browse files Browse the repository at this point in the history
* Fix example  in README.md for 1.21

* Update client.js

* Update README.md

---------

Co-authored-by: extremeheat <[email protected]>
  • Loading branch information
TrashyKitty and extremeheat authored Jul 5, 2024
1 parent 84c5231 commit c4593aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`
})
}
Expand Down
2 changes: 1 addition & 1 deletion examples/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`
})
}
Expand Down

0 comments on commit c4593aa

Please sign in to comment.