How to use packet injection (inject_joymax)

I am trying to create a plugin and I need to use “inject_joymax” but I do not know how to use it. Could you give some details about it?

You can check here.

https://projecthax.gitbook.io/phbot-plugins/phbot-api/packet-injection

I would also suggest reading some other plugins on the forum to get an understanding.