From 7fc6d73241b2b4a7905a9cf072ffed562eba1f54 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 23 Jun 2011 13:14:26 +0200 Subject: [PATCH] Added TargetReasons of wolfs --- .../essentials/protect/EssentialsProtectEntityListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java index 48aae97e5..89afc7cff 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java @@ -293,7 +293,10 @@ public class EssentialsProtectEntityListener extends EntityListener User user = Essentials.getStatic().getUser(event.getTarget()); if ((event.getReason() == TargetReason.CLOSEST_PLAYER || event.getReason() == TargetReason.TARGET_ATTACKED_ENTITY - || event.getReason() == TargetReason.PIG_ZOMBIE_TARGET) + || event.getReason() == TargetReason.PIG_ZOMBIE_TARGET + || event.getReason() == TargetReason.RANDOM_TARGET + || event.getReason() == TargetReason.TARGET_ATTACKED_OWNER + || event.getReason() == TargetReason.OWNER_ATTACKED_TARGET) && EssentialsProtect.guardSettings.get("protect.prevent.entitytarget") && !user.isAuthorized("essentials.protect.entitytarget.bypass")) {