Solved Custom recipe permissions ?

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

Nextopi

Member
May 1, 2018
21
0
1
33
I have this

code_language.skript:
on load:
    register new shaped recipe for apple named "&6&Sweet Apple" using apple, sugar, air, air, air, air, air, air, air

how can I add permissions so just some people can craft this ?
 
I had this issue before. But since the recipe is registered to ALL players, its not that easy.
You have to do something like checking their permissions on a craft event
[doublepost=1525799948,1525799873][/doublepost]Here is a snippet from one of my Skripts where I had to use a craft event permission.
code_language.skript:
on craft of poisonous potato:
    if name of item is "&9Grenade":
        if player does not have permission "c4.craft.grenade":
            cancel event
            send "[&bC4&r] - &cYou do not have permission to craft grenades" to player
 
Status
Not open for further replies.