options: permisja: start.pvp warp: test variables: {pvp.czas} = false {ile.pvp} = 10 {czekanie.%player%} = false {liczba.areny} = 0 command /pvp []: trigger: if arg 1 is "start": if player has permission "{@permisja}": set {pvp.czas} to true broadcast "&3Za &c10 &3sekund wystartuje PvP&c! &2Masz 5 sekund by wpisać /pvp" else: send "&cBrak permisji ({@permisja})" to player if arg 1 is empty: if {pvp.czas} is true: make player execute command "/warp {@warp}" set {czekanie.%player%} to true add 1 to {liczba.areny} else: send "&cZa późno..." to player if arg 1 is empty: if {liczba.areny} is bigger than 49: send "&cZa późno...." on any movement: if {czekanie.%player%} is true: if {liczba.areny} is smaller than 5: apply slowness 99 to the player for 999 second send "&6By zacząć gre musi być minimalnie 5 graczy!" to player else: remove slowness from player stop Every 1 second: if {pvp.czas} is true: if {ile.pvp} is bigger than 1: remove 1 from {ile.pvp} else: broadcast "&6Wejście na pvp zostało zakmnięte!" set {pvp.czas} to false add 10 to {ile.pvp}