Another Problem with Skript

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

  1. When I wrote this code, part of it didn't work.
    Most of it works but when it is supposed to say "Test" (So I can continue later), it will not display the name whenever the player has "{Tempbanm.%player%}"

    Code (Text):
       
    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 "&6QuestWars&c You must show what player you wish to ban! &4/pban [PLAYER]&c!"
            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
                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 [make player execute command "bmenu"]
            if {tempbanm.%player%} is "1":
                send "Test" to player
    command /bmenu:
        permission: bmenu.use
        permission message: &9Punish&8 -> &cSorry, you must be &3MODERATOR&c to do this command!
        trigger:
            set {tempbanm.%player%} to 1
            send "Hello world" to player
            wait 5 seconds
            set {tempbanm.%player%} to 0
            stop            
    More specifically this line wont work.
    Code (Text):
            if {tempbanm.%player%} is "1":
                send "Test" to player
     
  2. Put the whole "else:" thing below the line that won't work.
     
  3. OMG... I'm so mad at myself. ima try rn
     
  4. Didn't work. Can anyone else help
     
  5. Remove the quotation marks from 1 and it should work.
     
  6. Yes
    Code (Text):
    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 "&6QuestWars&c You must show what player you wish to ban! &4/pban [PLAYER]&c!"
            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
                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 [make player execute command "bmenu"]
            if {tempbanm.%player%} is 1:
                send "Test" to player
    command /bmenu:
        permission: bmenu.use
        permission message: &9Punish&8 -> &cSorry, you must be &3MODERATOR&c to do this command!
        trigger:
            set {tempbanm.%player%} to 1
            send "Hello world" to player
            wait 5 seconds
            set {tempbanm.%player%} to 0
            stop            
     
  7. wait is this being run of another ban system??? or will this ban someone with out that specific ban system cause im trying to make a server completly out of skript