Guest User

Untitled

a guest
Feb 5th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. command /czas [<text>]:
  2. trigger:
  3. if arg 1 is "real":
  4. send "&6&lSerwer trwa %{dni::real}% dni, %{godziny:real}% godzin, %{minuty::real}% minut i %{sekundy::real}% sekund" to player
  5. else:
  6. send "&5&lUzyj komendy /czas MC lub /czas real"
  7.  
  8. #Odpowiada za czas prawdziwy
  9.  
  10. if {sekundy::real} is 60:
  11. add 1 to {minuty::real}
  12. set {sekundy::real} to 0
  13. else if {minuty::real} is 60:
  14. add 1 to {godziny::real}
  15. set {minuty::real} to 0
  16. else if {godziny::real} is 60:
  17. add 1 to {dni::real}
  18. set {godziny::real} to 0
  19. every second:
  20. add 1 to {sekundy::real}
  21.  
  22. command /anvil-usun [<text>]:
  23. trigger:
  24. if player has permission "*":
  25. if arg 1 is "sekundy":
  26. remove 60 from {%arg 1%::real}
  27. add 1 to {minuty::real}
  28. send "&4&lUsunieto 60 %arg 1% z czasu realnego"
  29. else if arg 1 is "minuty":
  30. remove 60 from {%arg 1%::real}
  31. add 1 to {godziny::real}
  32. send "&4&lUsunieto 60 %arg 1% z czasu realnego"
  33. else if arg 1 is "godziny":
  34. remove 24 from {%arg 1%::real}
  35. add 1 to {dni::real}
  36. send "&4&l Usunieto 24 %arg 1% z czasu realnego"
  37. else:
  38. send "&5Uzyj slowa sekundy minuty lub godziny"
  39. else:
  40. send "&4Nie posiadasz uprawnien!" to player
  41. command /anvil-reset [<text>]:
  42. trigger:
  43. if player has permission "*":
  44. if arg 1 is "sekundy":
  45. set {%arg 1%::real} to 0
  46. send "&4&lZresetowales %arg 1%"
  47. else if arg 1 is "minuty":
  48. set {%arg 1%::real} to 0
  49. send "&4&lZresetowales %arg 1%"
  50. else if arg 1 is "godziny":
  51. set {%arg 1%::real} to 0
  52. send "&4&lZresetowales %arg 1%"
  53. else if arg 1 is "dni":
  54. set {%arg 1%::real} to 0
  55. send "&4&lZresetowales %arg 1%"
  56. else:
  57. send "&5Uzyj slowa sekundy minuty godziny lub dni"
  58. else:
  59. send "&4Nie posiadasz uprawnien!" to player
Advertisement
Add Comment
Please, Sign In to add comment