mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-15 10:25:22 +01:00
Removed notification message for damage.take checks
This commit is contained in:
parent
2067b0dcd8
commit
913ab76139
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user