You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Entity#addPassenger, the event that is thrown - VehicleEnterEvent should it be a vehicle. The same is done when a player manually enters a vehicle. If you want to cancel the event, there is no straightforward way to distinguish between these two causes.
Describe the solution you'd like.
Add getVehicleEnterCause to VehicleEnterEvent, similar to TeleportCause
Describe alternatives you've considered.
Cancelling the interact event instead, though it's a bit less clean of a workaround. A way to properly distinguish player vs plugin passenger adding would be ideal
Other
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
When using
Entity#addPassenger
, the event that is thrown -VehicleEnterEvent
should it be a vehicle. The same is done when a player manually enters a vehicle. If you want to cancel the event, there is no straightforward way to distinguish between these two causes.Describe the solution you'd like.
Add
getVehicleEnterCause
toVehicleEnterEvent
, similar toTeleportCause
Describe alternatives you've considered.
Cancelling the interact event instead, though it's a bit less clean of a workaround. A way to properly distinguish player vs plugin passenger adding would be ideal
Other
No response
The text was updated successfully, but these errors were encountered: