diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-07 20:37:48 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-07 20:37:48 +0000 |
commit | 12b1b7c85ac8e3cf1a0fa0f55a8f02286e794712 (patch) | |
tree | ab7df44a411000eb09d9a4bca30c838a0e8d0008 /EssentialsProtect/src/com | |
parent | 79bd8d0b2c49efc23163e3eb8c43f622242e8ee9 (diff) | |
download | Essentials-12b1b7c85ac8e3cf1a0fa0f55a8f02286e794712.tar Essentials-12b1b7c85ac8e3cf1a0fa0f55a8f02286e794712.tar.gz Essentials-12b1b7c85ac8e3cf1a0fa0f55a8f02286e794712.tar.lz Essentials-12b1b7c85ac8e3cf1a0fa0f55a8f02286e794712.tar.xz Essentials-12b1b7c85ac8e3cf1a0fa0f55a8f02286e794712.zip |
[trunk] Monster don't target players.
new config: protect.prevent.entitytarget
new permission: essentials.protect.entitytarget.bypass
typo
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1146 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsProtect/src/com')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java index cb7d8ed1c..6a1c8aa38 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java @@ -246,7 +246,7 @@ public class EssentialsProtectEntityListener extends EntityListener if ((event.getReason() == TargetReason.CLOSEST_PLAYER ||
event.getReason() == TargetReason.TARGET_ATTACKED_ENTITY ||
event.getReason() == TargetReason.PIG_ZOMBIE_TARGET) &&
- EssentialsProtect.guardSettings.get("protect.prevent.entitiytarget") &&
+ EssentialsProtect.guardSettings.get("protect.prevent.entitytarget") &&
!user.isAuthorized("essentials.protect.entitytarget.bypass")
)
{
|