WorldGuard

WorldGuard

8M Downloads

VehicleEnterEvent handling should also be applied to EntityMountEvent (when available)

me4502 opened this issue ยท 0 comments

commented

Describe the bug
There are a few ways to mount non-vehicle entities in MC, be it commands or plugins. On Spigot, this fires the EntityMountEvent rather than the VehicleEnterEvent. The same handling should be applied here as is as applied to VehicleEnterEvent.

To Reproduce

  1. Ride a non-vehicle entity
  2. It allows the action to occur in a protected region (including entry protection etc)

Expected behavior

  • Entry protection should prevent a user from mounting an entity

Additional context
Migration of EngineHub/CraftBook#1236