Solved Permission wooden door

  • 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!

Gino

Member
Apr 10, 2017
24
4
0
25
Category:
Skript


Suggested name:
GuardDoors


Spigot/Skript Version:
1.11.2


What I want:
I want that you need a permission to open a Dark_Oak_door and if you don't have this permission you get a message with: &4&lYou are not a guard.

Ideas for commands:
No commands needed


Ideas for permissions:
door.oak


When I'd like it by: before 17th july because i'm going on a vacation.
 
code_language.skript:
on right click on dark oak door:
    if player does not have permission "door.oak":
        cancel event
        send "&4&lYou are not a guard."
 
code_language.skript:
on right click on dark oak door:
    if player does not have permission "door.oak":
        cancel event
        send "&4&lYou are not a guard."

No errors, but non op's can still open the door. You get no message
 
My guess is you are using an outdated version of Skript then.
Since you didn't mention which version of Skript you were using (even though the template asks for that info),

I went with the latest (2.4-Alpha4), and it works perfectly fine.
I have 2.4 alpha, if i change the subject to a chest than it works perfectly, so maybe it's about the item name or something?