Shadax

Zegar

Jan 11th, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. variables:
  2. {sek} = 0
  3. {min} = 0
  4. {godz} = 0
  5. every 5 seconds:
  6. add 5 to {sek}
  7. if {sek} is greater or equal to 60:
  8. set {sek} to 0
  9. add 1 to {min}
  10. if {min} is greater or equal to 60:
  11. set {min} to 0
  12. add 1 to {godz}
  13. if {godz} is greater or equal to 24:
  14. set {godz} to 0
  15. stop
  16. command /time:
  17. trigger:
  18. send "&2Aktualny czas to: &4%{godz}%&8:&4%{min}%&8:&c%{sek}%"
  19. command /settime [<integer>] [<integer>] [<integer>]:
  20. trigger:
  21. if player have permission "time":
  22. if arg 1 is set:
  23. if arg 2 is set:
  24. if arg 3 is set:
  25. set {sek} to arg 3
  26. set {min} to arg 2
  27. set {godz} to arg 1
  28. send "&2Pomyslnie ustawiles czas na %{godz}%:%{min}%:%{sek}%"
  29. else:
  30. send "&cPoprawny zapis czasu to gg mm ss!"
  31. else:
  32. send "&cPoprawny zapis czasu to gg mm ss!"
  33. else:
  34. send "&cPoprawny zapis czasu to gg mm ss!"
  35. else:
  36. send "&cNie masz uprawnien do tego!"
Advertisement
Add Comment
Please, Sign In to add comment