PaperMC / PaperMC/Folia

PlayerTeleportEvent

Open
#330 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage type: bug
Dominant language
Shell
Stars
4.4k
Forks
623
PR merge metrics
No merged PRs in 30d

Description

Expected behavior

The event should either not get called, or when cancelled it should properly handle the location, currently
it seems to be glitching.

Observed/Actual behavior

The blocks call relativeTeleport on the BLock for farms if you jump on them.
and if the event is cancelled, the teleportTo becomes out of the region.
Ideally likely to remove the call of the event

Steps/models to reproduce

Just jump on a dirt block and cancel the event

Plugin and Datapack List
Folia version

dev/hard-fork branch.
at least until 3af04d9c6a98d24032bf8c99ad5446b0f381e320

Other

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with a dirt block and a cancelled PlayerTeleportEvent, then trace the relativeTeleport call and the resulting teleportTo location. Done means the event is not called or cancellation no longer places teleportTo outside the region.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.