From ac2e9852bef29f21a81d6a7856fb5a70d4b1808a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E6=B8=A1?= Date: Tue, 5 Oct 2021 07:20:12 +0800 Subject: [PATCH] fix `spawn` event (#139) --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 35db115..5062fb6 100644 --- a/docs/API.md +++ b/docs/API.md @@ -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) => {