Solved Whats wrong with my script?

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

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

Jim

New Member
Jul 30, 2019
6
0
0
29
command /autogg:
permission: rank.enablegg
description: Enables auto GG.
trigger:
if player has permission: "death.ggwp" is not set:
make console execute "pex user %player% add death.ggwp"
send "&eYou have disabled auto GG."
else:
make console execute "pex user %player% remove death.ggwp"
send "&eYou have enabled auto GG."

-- I want it to add death.ggwp perm to that user and if he has it to remove it.

ERROR
--[
[ERROR] ': "death.ggwp"' is not a valid item data (player damage gg.sk, line 5: if player has permission: "death.ggwp" is not set:')

[ERROR] 'else' has to be placed just after an 'if' or 'else if' section (player damage gg.sk, line 8: else:')
]--
[doublepost=1564603786,1564603155][/doublepost]Solved.
 
Status
Not open for further replies.