Skip to content

Adding a PlayerPreTeleportEvent event called before the teleportation…#10263

Closed
Will33ELS wants to merge 1 commit into
PaperMC:masterfrom
Will33ELS:feat/PlayerPreTeleportEvent
Closed

Adding a PlayerPreTeleportEvent event called before the teleportation…#10263
Will33ELS wants to merge 1 commit into
PaperMC:masterfrom
Will33ELS:feat/PlayerPreTeleportEvent

Conversation

@Will33ELS
Copy link
Copy Markdown

Hello,

I would like to propose the addition of a new event to Paper that would be called before a player's teleportation attempt.

In my current scenario, I have a cosmetic plugin that adds a passenger to the player (a TextDisplay), and all teleportations are blocked because the player has at least one passenger, with no event being called to remove it. This forces the use of NMS (which is discouraged today).

The PlayerPreTeleportEvent event would be invoked before all checks and would allow plugin developers the opportunity to ensure compliance with checks before teleportation occurs.

@Will33ELS Will33ELS requested a review from a team as a code owner February 19, 2024 10:57
@Leguan16
Copy link
Copy Markdown
Contributor

I already opened a PR that adds this event: #10173

@Will33ELS
Copy link
Copy Markdown
Author

@Leguan16 Well noted, thank you. Do you know when your PR will be processed?

@Leguan16
Copy link
Copy Markdown
Contributor

Nope. Can be tomorrow, can be in 2 weeks. But you can leave feedback if you want :)

@Will33ELS Will33ELS closed this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants