Skip to content

Adding a PlayerPreTeleportEvent event called before the teleportation…#10262

Closed
Will33ELS wants to merge 1 commit into
PaperMC:masterfrom
Will33ELS:master
Closed

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

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:51
@github-actions
Copy link
Copy Markdown

Please do not open pull requests from the master branch, create a new branch instead.

@github-actions github-actions Bot 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.

1 participant