mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-26 12:41:03 -04:00
Executed standard --fix
This commit is contained in:
parent
a563893a62
commit
9a9eaedaf5
@ -26,7 +26,7 @@ client.on('chat', function (packet) {
|
||||
if (jsonMsg.translate === 'chat.type.announcement' || jsonMsg.translate === 'chat.type.text') {
|
||||
const username = jsonMsg.with[0].text
|
||||
const msg = jsonMsg.with[1]
|
||||
if (username === client.username) return;
|
||||
if (username === client.username) return
|
||||
if (msg.text) client.write('chat', {message: msg.text})
|
||||
else client.write('chat', {message: msg})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user