diff options
author | snowleo <schneeleo@gmail.com> | 2011-06-23 13:14:26 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-23 13:14:26 +0200 |
commit | 7fc6d73241b2b4a7905a9cf072ffed562eba1f54 (patch) | |
tree | 93574ca95f0360bdf0b476765c8a2921b5f7e3f2 /EssentialsProtect | |
parent | 036bbbb46236b566c09e6c88dd6982287abb4989 (diff) | |
download | Essentials-7fc6d73241b2b4a7905a9cf072ffed562eba1f54.tar Essentials-7fc6d73241b2b4a7905a9cf072ffed562eba1f54.tar.gz Essentials-7fc6d73241b2b4a7905a9cf072ffed562eba1f54.tar.lz Essentials-7fc6d73241b2b4a7905a9cf072ffed562eba1f54.tar.xz Essentials-7fc6d73241b2b4a7905a9cf072ffed562eba1f54.zip |
Added TargetReasons of wolfs
Diffstat (limited to 'EssentialsProtect')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java | 5 |
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"))
{
|