WorldGuard

WorldGuard

8M Downloads

AreaEffectCloud damages players in non-pvp region

LadyCailinBot opened this issue ยท 2 comments

commented

WORLDGUARD-3776 - Reported by Enatras

It is possible to damage players within a "pvp: deny" region by throwing lingering potions (e.g. direct damage, poison, ...).
Using "potion-splash: deny" is not a good idea, because players can't attack enemy creatures anymore.

I suggest to cancel the AreaEffectCloud's effects inside a "pvp: deny" region.

Thanks!

Running: latest build (6.2.1 b1695) on PaperSpigot (1.10.2 b916)

commented

Comment by wizjany

not convinced that's the correct solution. that would also imply that denying pvp in the end would make the dragon fight easier, for example.
issue is that area clouds don't have any info on who/what created them. we'd need that to make intelligent decisions.

commented

Comment by PseudoKnight

Can get the source of the AreaEffectCloud from the API:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/AreaEffectCloud.html