mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-18 14:11:40 +01:00
[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
This commit is contained in:
parent
79bd8d0b2c
commit
12b1b7c85a
@ -246,7 +246,7 @@ public class EssentialsProtectEntityListener extends EntityListener
|
|||||||
if ((event.getReason() == TargetReason.CLOSEST_PLAYER ||
|
if ((event.getReason() == TargetReason.CLOSEST_PLAYER ||
|
||||||
event.getReason() == TargetReason.TARGET_ATTACKED_ENTITY ||
|
event.getReason() == TargetReason.TARGET_ATTACKED_ENTITY ||
|
||||||
event.getReason() == TargetReason.PIG_ZOMBIE_TARGET) &&
|
event.getReason() == TargetReason.PIG_ZOMBIE_TARGET) &&
|
||||||
EssentialsProtect.guardSettings.get("protect.prevent.entitiytarget") &&
|
EssentialsProtect.guardSettings.get("protect.prevent.entitytarget") &&
|
||||||
!user.isAuthorized("essentials.protect.entitytarget.bypass")
|
!user.isAuthorized("essentials.protect.entitytarget.bypass")
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user