Open
Description
- The FAQ doesn't contain a resolution to my issue
Versions
- mineflayer: 1.21.4
- server: paper 1.21.4
- node: 20.17.0
Detailed description of a problem
actionBar event is not triggering in new versions. There was once pull request to fix this, but it was not merged.
What did you try yet?
I added this code to my own code to make it work. It works with this, but this should also be part of mineflayer.
const ChatMessage = require('prismarine-chat')(bot.version);
bot._client.on('action_bar', (data) => {
const msg = ChatMessage.fromNotch(data.text)
bot.emit('actionBar', msg)
});
Expected behavior
Code above should not be needed by single users.