Fix players being invincible with BUILD = deny.

Fixes WORLDGUARD-3201.
This commit is contained in:
sk89q 2014-11-10 23:56:11 -08:00
parent a2defe5971
commit dac09c64c8

View File

@ -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);