da sie jak najbardziej
command /ustaw [<text>]:
trigger:
if player has permission "ustawiaj.sk":
set {czas} to false
set {pogoda} to false
if {czas} or {pogoda} is true:
send "Pogode lub czas można zmieniać co 5 minut" to player
stop
if arg-1 is "dzien":
set time to day
set {czas} to true
send "Ustawiłeś dzień" to player
send "Gracz %player% ustawił dzień" to all players
wait 300 seconds
set {czas} to false
if arg-1 is "noc":
set time to night
set {czas} to true
send "Ustawiłeś noc" to player
send "Gracz %player% ustawił noc" to all players
wait 300 seconds
set {czas} to false
if arg-1 is "slonce":
set weather in player's world to sun
set {pogoda} to true
send "Ustawiłeś słońce" to player
send "Gracz %player% ustawił słońce" to all players
wait 300 seconds
set {pogoda} to false
if arg-1 is "deszcz":
set weather in player's world to rain
set {pogoda} to true
send "Ustawiłeś deszcz" to player
send "Gracz %player% ustawił deszcz" to all players
wait 300 seconds
set {pogoda} to false
else:
send "podaj co chcesz ustawic" to player
else:
send "Nie masz odpowiednich uprawnien" to player