Solved Permission based block break

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Naxxos

New Member
Apr 14, 2017
8
0
0
22
Im looking to make it so that if an individual has a certain permission, they will not be able to break a certain type of block however the "block" in question is an armor stand which is creating problems as from what I understand the block is being treated as an entity.

Any suggestions on how to achieve this would be very much appreciated.
 
code_language.skript:
On damage:
    victim is an armor stand
    attacker is a player
    attacker has permission "magicspells.cast.vampireconsume":
    cancel event
    message "&cvampires cannot do that"
    stop

Well I could have swore that I already did this and it didnt work, but I tried it again and it did lmao, still not sure what really changed but thanks for setting me back on the right track everything is working now.
 
Status
Not open for further replies.