Closed iLemon closed 1 year ago
Looks like I had already written something to fix this for Purpur ridables, but didn't consider ridable pet plugins like SimplePets. I'm pushing a commit to broaden my Purpur ridables fix to work on any entity that has a rider, and this should fix issues with most ridable pet plugins. SimplePets does not mark ridable pets as having a rider, so my fix won't work on it until they add that. I've mentioned it to the SimplePets dev brainsynder, and he said he'll add it in. Be on the lookout for that. Note that my fix also only works on Paper servers and its forks so if you're using Spigot, this won't work on your server.
Additionally, brainsynder already has a plugin that could solve your issue. I think you can at least use it as a temporary solution until SimplePets start to mark pets as having riders.
to be more specific (now that I'm home) here is a link to the resource page
I have a few corrections to make to my previous comment. It looks like getRider is a Purpur-specific method for getting the rider of a Purpur ridable. I needed to look at hasPassengers, and I've fixed this for the next GPFlags version. Since SimplePets already adds passengers, just updating to GPFlags 5.12.7 will fix this issue.
Describe the bug Riding a pet (from SimplePets or other plugins) allows you to bypass the NoEnter flag
To Reproduce Steps to reproduce the behavior:
Expected behavior Ideally it should kick the player off the pet, similar to how it works with boats
Versions: