fix spawn event (#139)

This commit is contained in:
迷渡 2021-10-05 07:20:12 +08:00 committed by GitHub
commit ac2e9852be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ const client = bedrock.createClient({
client.on('join', client => console.log('Player has joined!'))
// The 'spawn' event is emitted. The chunks have been sent and all is well.
client.on('join', client => console.log('Player has spawned!'))
client.on('spawn', client => console.log('Player has spawned!'))
// We can listen for text packets. See proto.yml for documentation.
client.on('text', (packet) => {