Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {sek} = 0
- {min} = 0
- {godz} = 0
- every 5 seconds:
- add 5 to {sek}
- if {sek} is greater or equal to 60:
- set {sek} to 0
- add 1 to {min}
- if {min} is greater or equal to 60:
- set {min} to 0
- add 1 to {godz}
- if {godz} is greater or equal to 24:
- set {godz} to 0
- stop
- command /time:
- trigger:
- send "&2Aktualny czas to: &4%{godz}%&8:&4%{min}%&8:&c%{sek}%"
- command /settime [<integer>] [<integer>] [<integer>]:
- trigger:
- if player have permission "time":
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- set {sek} to arg 3
- set {min} to arg 2
- set {godz} to arg 1
- send "&2Pomyslnie ustawiles czas na %{godz}%:%{min}%:%{sek}%"
- else:
- send "&cPoprawny zapis czasu to gg mm ss!"
- else:
- send "&cPoprawny zapis czasu to gg mm ss!"
- else:
- send "&cPoprawny zapis czasu to gg mm ss!"
- else:
- send "&cNie masz uprawnien do tego!"
Advertisement
Add Comment
Please, Sign In to add comment