I posted an issue about this on the Geyser GitHub here: Shooting Projectiles via Plugin is Glitchy #2913. My mini-game used the PlayerInteractEvent, so this was obviously a big problem for me. A little while later, "chrismwiggs" posted about a couple of other issues similar to mine as you can see. I noticed he said the second issue had a possible solution (this issue: Left click events not detected by other plugins when punching "air"... #2113). At the time, that seemed like too much work to try to fix on my own and I wanted the developers to fix it. I noticed they probably wouldn't ever fix it, so I just dropped cross platform support.
Today, I think it would be really cool to have cross platform support back on my server. I would be willing to fork Geyser and try to fix it myself, but I would say I'm an advanced beginner at plugin development. So, does anyone think they can help me figure out:
- Whether I would need ServerboundSwingPacket or something else to make it work on all Bedrock platforms (this is talked about at the end of issue 2113).
- How to add this to Geyser (where in the source code)
- The actual code I would need to add
I also posted this on Spigot here.