PaperMC / PaperMC/Folia

EntityDamageByEntityEvent has incorrect damager instance when player uses ender pearls

Open
#438 0 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

EntityDamageByEntityEvent#getDamager() should return CraftEnderPearl.
Debugger shows this value for Paper:
Image

Observed/Actual behavior

EntityDamageByEntityEvent#getDamager() returns Player.
Image

Steps/models to reproduce
  1. Catch event: EntityDamageByEntityEvent thrown when player uses ender pearl to teleport himself
  2. Check return value of event#getDamager()
Plugin and Datapack List

EternalCombat

Folia version

This server is running Folia version 1.21.11-11-ver/1.21.11@e112b00 (2026-01-20T18:53:05Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.11-100-4873e3f (MC: 1.21.11)

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 at EntityDamageByEntityEvent#getDamager() and reproduce the event with an ender pearl using the listed EternalCombat setup. Compare the returned Player with the expected CraftEnderPearl and verify the event reports the pearl after the fix; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.