I need help with my skript. I'm brand new to skriping and I want to learn more. I've done lots of research but I haven't found too much on permissions. My idea is that when a player respawns, it checks if they have a permission, if they don't, nothing happens. I want it to check for multiple permissions, like ranks. If a player has a rank, it runs a command to console to give them a kit when they respawn. I'm a little stuck here. I know how to read the skript, I'm not a total noob. I don't know how to cancel the "execute console" if the player doesn't have the autokit.member permission... My skript isn't working because even if the player doesn't have the permission "autokit.member", it still runs the console command.
on respawn:
if player has permission "autokit.member":
execute console command "/kit dtools %player%"
on respawn:
if player has permission "autokit.member":
execute console command "/kit dtools %player%"