PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.95k stars 904 forks source link

Event for other players deaths #122

Closed halkeye closed 11 years ago

halkeye commented 11 years ago

I was looking at https://github.com/superjoe30/mineflayer/blob/master/doc/api.md#events

Most of the events are about the bot, not other things happening in the world.

Can you add an event for when other players die. Hopefully how they die as well?

Gavin

andrewrk commented 11 years ago

I'll investigate potentially doing this. Meanwhile if you want this right now you can listen to "message" and use some regexes to figure out when players die.

andrewrk commented 11 years ago

I have decided that this would be useful, but it's not going to be in mineflayer core. A 3rd party plugin for this would be most welcome. It wouldn't be too hard - you'd pretty much listen to the message event, use those regexes, and emit a new event.