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 <extreme@protonmail.ch>
This commit is contained in:
parent
84c5231b92
commit
c4593aa355
2 changed files with 2 additions and 2 deletions
|
|
@ -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()}`
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()}`
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue