every 5 minute skript help needed

Discussion in 'Skript' started by Isakvm, Feb 23, 2020.

  1. on block place:
    permission: builder.buy
    if {time.x} is 0:
    set {time.x} to 5
    wait 1 minutes
    set {time.x} to 0
    if player does not have permission builder buy
    if {time.x} is 0:
    set {time.x} to 5
    wait 5 minutes
    set {time.x} to 0


    Hi, I want so when you have the permission builder.buy it takes 1 minute before you can place a block and if you don't it takes 5 minutes. if someone can solve this then thanks :D
     
  2. I'm not very experienced in Skript, but from what I know, this might work.
    Code (Text):
    on block place:
        if player doesn't have permission "builder.buy":
            if {time.x} is 0:
                set {time.x} to 1
                    wait 1 minutes
                    set {time.x} to 0
        else:
            if {time.x} is 0:
                set {time.x} to 5
                wait 5 minutes
                set {time.x} to 0