[SPIGOT-6286] Provide PreAPIEntityTeleportEvent Created: 22/Dec/20  Updated: 21/Jun/22

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Bjarne Koll Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: event, teleport

Issue Links:
Relates
relates to SPIGOT-7075 Permit players to get teleported whil... In Progress
Version: 1
Guidelines Read: Yes

 Description   

Right now spigot does not call the PlayerTeleportEvent/EntityTeleportEvent for entities that are being used as vehicles.

This is, judging from https://hub.spigotmc.org/jira/browse/SPIGOT-2064 this is intended behaviour and makes sense as the entity does not teleport at all. This begs the question tho on how to effectively register logic for the specific edge case of a plugin attempting to teleport a entity that currently passengers on them.

An example usecase of this is the usage of passanger based pets etc that are supposed to follow you through teleports attempted by other plugins.

This issue suggests the implementation of a specific event that will be called prior to the spigot specific teleportation such as a PreEntityAPITeleportationEvent. Notably I do understand that this event would not match any vanilla event and would therefore purely represent spigot mechanics, hence I would like to at least foster a discussion about this issue and explore other potential solutions to it in this issue if my initial suggestion is deemed incorrect. 


Generated at Sat Dec 13 22:30:33 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.