Closed TheDudeFromCI closed 3 years ago
What exactly would this change look like? I think one approach would be to make attack return a promise that is resolved when the target has died/teleported/despawned/disconnected.
What exactly would this change look like? I think one approach would be to make attack return a promise that is resolved when the target has died/teleported/despawned/disconnected.
That's a good idea. It would be very useful.
This is more of a new feature then a requirement for making this package promisified, this package is already promisified, it's fine how it is now, its meant to be run, and you can check it's status while it's running. I think this should be closed and reopened as a feature request
Given that the Mineflayer codebase now uses promises, all Mineflayer plugins should also more in that direction.