PaperMC / PaperMC/Paper

PlayerMoveEvent is not always called

Open
#7,791 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepted type: bug version: 1.19
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

I recently discovered that the PlayerMoveEvent does not trigger when moving in a minecart or on a llama.
But due to the fact that it triggers when moving in a boat I also expect it to trigger when moving in a minecart.

Observed/Actual behavior

It does not trigger the event when moving in a minecart or on a llama.

Steps/models to reproduce

Just to show if a player is moving or not:

@EventHandler
public void onMove(PlayerMoveEvent event) {
    System.out.println("MOVE");
}

Hop in a minecart and you will see that it does not trigger the event.
If you hop in a boat and move it will trigger the event.

Plugin and Datapack List

just the plugin with the handler.

Paper version

This server is running Paper version git-Paper-317 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: e5da93a)
You are running the latest version
Previous version: git-Paper-302 (MC: 1.18.2)

Other

No response

Contributor guide

Open the contributing guide

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 the provided PlayerMoveEvent handler on Paper 1.18.2, comparing movement in a minecart, boat, and on a llama. Trace the movement event paths for these vehicles and verify that the event fires consistently for the affected cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.