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?
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?