Muqsit / FakePlayer

Test your PocketMine-MP server by having (real-looking) fake players assist you.
https://poggit.pmmp.io/ci/Muqsit/FakePlayer
57 stars 22 forks source link

More convenient ways to handle events #17

Open SOF3 opened 2 years ago

SOF3 commented 2 years ago

I'd like to use this in my integration tests. I need to programmatically handle the case where the player receives a message, so that I can check it against expected message. Currently the API only supports packets, which is an unstable API.

There are PocketMine events I can use to handle other stuff like playerinteractevent (and using AwaitStd for the API), but there is no event for receiving messages.