mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-15 03:14:56 -05:00
Executed standard --fix
This commit is contained in:
parent
a563893a62
commit
9a9eaedaf5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue