command permission

  • 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.

DarkHacks

Member
May 2, 2020
3
0
0
command /sala:
trigger:
if player has permission "sala.use":
chance of 35%:
message "&c+1 (poza lui DarkHacks)" to player
give player magma with name "&c+1 Viata"
else if player has permission "sala.use":
chace of 65%:
send "&a&lNope"
else if player doesn't have permission "sala.use":
send "&c&lNu ai abonament la sala"
wait 15 seconds​

Thats what i did there but when a player without the permission execute the command and have the chance he can execute it without the permission. Sorry if you dont understand. What i did wrong?
I use skript on version » 1.12.2
 
Last edited:
command /sala:
trigger:
if player has permission "sala.use":
chance of 35%:
message "&c+1 (poza lui DarkHacks)" to player
give player magma with name "&c+1 Viata"
else if player has permission "sala.use":
chace of 65%:
send "&a&lNope"
else if player doesn't have permission "sala.use":
send "&c&lNu ai abonament la sala"
wait 15 seconds​

Thats what i did there but when a player without the permission execute the command and have the chance he can execute it without the permission. Sorry if you dont understand. What i did wrong?
I use skript on version » 1.12.2
Code:
command /sala:
    cooldown: 15 seconds
    cooldown message: &cnope
    trigger:
        if player has permission "sala.use":
            if chance of 35%:
                message "&c+1 (poza lui DarkHacks)" to player
                give player magma with name "&c+1 Viata"
            else:
                send "&a&lNope"
        else:
            send "&c&lNu ai abonament la sala"
 
Status
Not open for further replies.