PlayerTeleportEvent

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

Nobody has claimed this yet.

Assessment

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

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.

Description

status: needs triage type: bug
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

Dominant language
Shell
Stars
4.7k
Forks
651
Avg merge
10d 3h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from PaperMC/Folia

All issues in PaperMC/Folia

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.