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.

How do I give someone a rank with a command?

Discussion in 'Skript' started by DogoBweadz, Jun 20, 2021.

Thread Status:
Not open for further replies.
  1. DogoBweadz

    DogoBweadz Member

    Joined:
    Jun 17, 2021
    Messages:
    2
    Likes Received:
    0
    Hey can someone help me with a skript?
    so im trying to have a command where when a player uses it, it checks they're inventory to see if they have a named trip wire hook if the player has it then it takes the tripwire hook and gives them a rank using permissionsex.

    command /EmeraldKey:
    trigger:
    if name of player's tool is "&a&lEmerald Key":
    remove 1 tripwire hook named "&a&lEmerald Key" from player's inventory
    execute console command "pex user %player% group add Emerald"

    this is what ive been using but its not working and its not even giving me any errors?
     
  2. CyrotechV2

    CyrotechV2 New Member

    Joined:
    Jul 30, 2020
    Messages:
    3
    Likes Received:
    0
    you can use this:

    Code (Text):
    1. command /emeraldkey:
    2.     trigger:
    3.         if player's tool is tripwire hook named "&a&lEmerald Key":
    4.             remove 1 tripwire hook named "&a&lEmerald Key" from player
    5.             console command "pex user %player% group add Emerald"
    6.             send "&aYou have redeemed your &lEMERALD &akey!"
    7.             stop
    8.  
    9.         else:
    10.             send "&cYou need to hold an &a&lEMERALD KEY &cfor this command to work."
    11.             stop
     
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
Thread Status:
Not open for further replies.

Share This Page

Loading...