Removed notification message for damage.take checks

This commit is contained in:
t3hk0d3 2012-01-27 22:12:19 +04:00
parent 2067b0dcd8
commit 913ab76139

View File

@ -48,6 +48,7 @@ public class EntityListener extends ModifyworldListener {
if (edbe.getDamager() instanceof Player) { // Prevent from damaging by player
player = (Player) edbe.getDamager();
if (!canMessWithEntity(player, "modifyworld.damage.deal.", event.getEntity())) {
informPlayerAboutDenial(player);
cancelDamageEvent(player, event);
return;
}
@ -76,8 +77,7 @@ public class EntityListener extends ModifyworldListener {
}
protected void cancelDamageEvent(Player player, EntityDamageEvent event) {
informPlayerAboutDenial(player);
event.setCancelled(true);
event.setCancelled(true);
event.setDamage(0);
}