mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 16:09:44 +00:00
Do not block user damaging self (ender eye)
This commit is contained in:
parent
8146858ee0
commit
872df26e9d
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ public class EssentialsProtectEntityListener implements Listener
|
|||
// PVP Settings
|
||||
if (target instanceof Player && eAttack instanceof Player
|
||||
&& prot.getSettingBool(ProtectConfig.disable_pvp)
|
||||
&& !user.getName().equalsIgnoreCase(attacker.getName())
|
||||
&& (!user.isAuthorized("essentials.protect.pvp") || !attacker.isAuthorized("essentials.protect.pvp")))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
|
|
Loading…
Reference in a new issue