How do I give someone a rank with a command?

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

    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.

DogoBweadz

Member
Jun 17, 2021
2
0
1
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?
 
you can use this:

Code:
command /emeraldkey:
    trigger:
        if player's tool is tripwire hook named "&a&lEmerald Key":
            remove 1 tripwire hook named "&a&lEmerald Key" from player
            console command "pex user %player% group add Emerald"
            send "&aYou have redeemed your &lEMERALD &akey!"
            stop

        else:
            send "&cYou need to hold an &a&lEMERALD KEY &cfor this command to work."
            stop
 
Status
Not open for further replies.