EntityDamageByEntityEvent doesn't get canceled when player gets hit in no pvp region
MagicCheese1 opened this issue ยท 1 comments
Versions
WorldEdit version: bukkit-7.2.6-beta-02
WorldGuard version : bukkit-7.0.6-beta1-dist
Platform version: This server is running Paper version git-Paper-123 (MC: 1.17.1)
Describe the bug
I listen to the EntityDamageByEntityEvent in my plugin. When I hit a player in a region with disabled pvp the EntityDamageByEntity event does not get canceled. The player doesn't get damaged.
To Reproduce
- Listen to EntityDamageByEntity event and check if event#isCanceled is true.
- Hit a player in a region with disabled pvp.
Expected behavior
The event should be canceled.
Screenshots
Additional context