Open Parker2991 opened 1 month ago
There is too much code here. Please post a snippet that can reproduce the bug you are reporting. For general support questions please use the Discord.
bot.on('packet.player_chat', packet => { unsigned = JSON.parse(loadPrismarineChat.processNbtMessage(nbt.comp(nbt.string(packet.unsignedChatContent)))) bot.emit('player_chat', { plain: packet.plainMessage, unsigned, senderUuid: packet.senderUuid }) bot.emit('message', unsigned) tryParsingMessage(unsigned, { senderUuid: packet.senderUuid, players: bot.players, getMessageAsPrismarine: bot.getMessageAsPrismarine}) }) bot.on('packet.profileless_chat', packet => { const message = JSON.parse(loadPrismarineChat.processNbtMessage(nbt.comp(nbt.string(packet.message)))) const sender = JSON.parse(loadPrismarineChat.processNbtMessage(nbt.comp(nbt.string(packet.name)))) bot.emit('profileless_chat', { message, type: packet.type, sender })
bot.emit('message', message)
tryParsingMessage(message, { senderName: sender, players: bot.players, getMessageAsPrismarine: bot.getMessageAsPrismarine })
})
im saying that when i try to parse nbt chat its either blank or it shows the : in the chat format of [] playerusername§f: message. system chat parses just fine
Why are you not using mineflayer?
i prefer to use nmp it runs smoother than mineflayer and it fits my needs
so when i try to parse nbt chat for 1.20.3 and 1.20.4 its either a blank message or the bot reads it incorrectly
the server is kaboom.pw that the code was tried on the chat format is [] player§f: message and it doesnt parse the : in the chat