I made this code and it works fine:
but if I add a permission condition it stops working:
or
Does anyone know how to make it work?
Code:
on entity target:
entity's target is a player
cancel event
but if I add a permission condition it stops working:
Code:
on entity target:
entity's target is a player
player has permission "target.ignore"
cancel event
Code:
on entity target:
entity's target is a player
if player has permission "target.ignore":
cancel event
Does anyone know how to make it work?