1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved if player have permission , doesn't have permission | not working

Discussion in 'Skript' started by LatteKunGz, Oct 20, 2021.

  1. LatteKunGz

    LatteKunGz Member

    Joined:
    Aug 15, 2020
    Messages:
    11
    Likes Received:
    0
    if arg-1 is "menu":
    if player have permission "world.uncreate":
    make player execute command "chaiyee"
    else:
    if player doesn't have permission "world.uncreate":
    send "lungxd"

    why it not working please help it don't have any error in console | sorry for bad eng :emoji_frowning:
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    597
    Likes Received:
    37
    This should work without a problem
    Code (Text):
    1.         if arg-1 is "menu":
    2.             if player have permission "world.uncreate":
    3.                 make player execute command "chaiyee"
    4.             else:
    5.                 send "lungxd"
     
  3. LatteKunGz

    LatteKunGz Member

    Joined:
    Aug 15, 2020
    Messages:
    11
    Likes Received:
    0
    it not working i don't have permission "world.uncreate" but it run command "chaiyee" | sorry for bad eng :emoji_frowning:
     
  4. MalseJesse

    MalseJesse Member

    Joined:
    Oct 21, 2021
    Messages:
    3
    Likes Received:
    0
    Code (Text):
    1.  
    2. command /test <text>:
    3.     permission: world.uncreate
    4.     permission message: lungxd
    5.     trigger:
    6.         if arg-1 is "menu":
    7.             make player execute command "chaiyee"
    8.  
    this should work
     

Share This Page

Loading...