Confused with this code - Help me please

Discussion in 'Skript' started by XinesMC, Jun 5, 2017.

  1. Code (Text):
    variables:
        {tempbanm.%player%} = 0
        {banm.%player%} = 0
           
    command /pban [<player>]:
        aliases: /ban, /tempban
        permission: punishment.ban
        permission message: &9Punish&8 -> &cSorry, you must be &3MODERATOR&c to do this command!
        trigger:
            if arg 1 is not set:
                send "&6Missing Argument&e You must show what player you wish to punish!"
            else:
                wait 1 tick
                open chest with 1 row named "&4&lBan Menu &c&l%player%" to player
                format slot 0 of player with 591 named "&6" to close
                format slot 1 of player with 591 named "&6" to close
                format slot 2 of player with 591 named "&6" to close
                format slot 4 of player with 591 named "&6" to close
                format slot 6 of player with 591 named "&6" to close
                format slot 7 of player with 591 named "&6" to close
                format slot 8 of player with 591 named "&6" to close
                format slot 3 of player with 159:5 named "&2&lTempban" with lore "&aOpens a Tempban menu||&7Required Rank: [&3MOD&7]" to close then set {banm.%player%} to 1
                format slot 5 of player with 159:14 named "&4&lPermanent Ban" with lore "&cOpens a Permanent Ban menu||&7Required Rank: [&eADMIN&7]" to close then set "{tempbanm.%player%} to 1"
            if {banm.%player%} is "1":
                send "EDIT LATER" to player
     
    When I add it into my Skript folder, it says I have errors with "then set {banm.%player%} to 1,

    upload_2017-6-5_21-18-44.png

    If u find a fix may you txt me on Discord @ XinesMC#1512
    Thank you for your time!
     
  2. Code (Text):
                format slot 3 of player with 159:5 named "&2&lTempban" with lore "&aOpens a Tempban menu||&7Required Rank: [&3MOD&7]" to close then run [set {banm.%player%} to 1]
                format slot 5 of player with 159:14 named "&4&lPermanent Ban" with lore "&cOpens a Permanent Ban menu||&7Required Rank: [&eADMIN&7]" to close then run [set {tempbanm.%player%} to 1"]