mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 13:07:29 +01:00
Fix players being invincible with BUILD = deny.
Fixes WORLDGUARD-3201.
This commit is contained in:
parent
a2defe5971
commit
dac09c64c8
@ -431,6 +431,11 @@ public void onDamageEntity(DamageEntityEvent event) {
|
||||
|
||||
what = "PvP";
|
||||
|
||||
/* Player damage not caused by another player */
|
||||
} else if (event.getEntity() instanceof Player) {
|
||||
canDamage = true;
|
||||
what = "damage that";
|
||||
|
||||
/* Everything else */
|
||||
} else {
|
||||
canDamage = query.testBuild(target, associable, DefaultFlag.USE);
|
||||
|
Loading…
Reference in New Issue
Block a user