summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-06-23 13:14:26 +0200
committersnowleo <schneeleo@gmail.com>2011-06-23 13:14:26 +0200
commitbceaf01595440f86d4afcfee21cdea7094e8276f (patch)
tree9874097fa2be344fd1a3456f43213cdc06de9148 /EssentialsProtect/src/com/earth2me/essentials
parent8b7246f8f01dacd31a7053fedfc1afc01084799c (diff)
downloadEssentials-bceaf01595440f86d4afcfee21cdea7094e8276f.tar
Essentials-bceaf01595440f86d4afcfee21cdea7094e8276f.tar.gz
Essentials-bceaf01595440f86d4afcfee21cdea7094e8276f.tar.lz
Essentials-bceaf01595440f86d4afcfee21cdea7094e8276f.tar.xz
Essentials-bceaf01595440f86d4afcfee21cdea7094e8276f.zip
Added TargetReasons of wolfs
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java5
1 files changed, 4 insertions, 1 deletions
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"))
{