options: blok: grass # Tu daj nazwe bloku variables: {trawaban.%player%} = false {trawabanl.%player%} = 0 {odnowienie.%player%} = false {odnawiam.%player%} = false on break {@blok}: if {trawaban.%player%} is true: cancel event send "&6Masz bana na koszenie trawy! Ban mija za %{sek.%player%}% sekund!" else: add 1 to z-coordinate of {_location} set {_location} to location of block Every 1 second: loop all players: if {trawaban.%loop-player%} is true: if {trawabanl.%loop-player%} is bigger than 0: remove 1 from {trawabanl.%loop-player%} else: set {trawaban.%loop-player%} to false send "&6Ban na koszenie trawy skończył się!" to loop-player%} Every 3 minutes: loop all players: if {odnowienie.%loop-player%} is true: set block at {_loc} to {@blok} command /trawaban [] []: permission: trawa.ban trigger: if arg 1 is set: set {trawaban.%arg 1%} to true set {trawabanl.%player%} to %arg 2% set {odnowienie.%player%} to true broadcast "&8[&aTrawka&8] &6%player% &7Dał &6%arg 1% &7bana na koszenie trawy!" else: send "&cWpisz nick gracza!" command /trawaunban []: permission: trawa.unban trigger: if arg 1 is set: if {trawaban.%arg 1%} is true: set {trawaban.%arg 1%} to false set {trawabanl.%player%} to 0 set {odnowienie.%player%} to false broadcast "&8[&aTrawka&8] &6%arg 1% &7Otrzymał unbana na koszenie trawki!" else: send "&cTen gracz nie ma bana na koszenie trawki!"