Guest User

Untitled

a guest
Oct 25th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. options:
  2. tag: &c[&l&6EVENT&r&c]
  3. command /event start:
  4. trigger:
  5. if player has permission "event.drop":
  6. if {event} is 0:
  7. set {event} to 1
  8. set {drop} to 1
  9. send "{@tag} &aWlasnie rozpoczales event!"
  10. set {czas.min} to 29
  11. set {czas.sec} to 60
  12. send "{@tag} &aAdmin &c%player% &arozpoczal event!" to player
  13. else:
  14. send "{@tag} &aEvent juz trwa!" to player
  15. command /event stop:
  16. trigger:
  17. if player has permission "event.drop":
  18. if {event} is 1:
  19. set {event} to 0
  20. send "{@tag} &aWlasnie wylaczyles event!" to player
  21. set {czas.sec} to 0
  22. set {czas.min} to 0
  23. set {drop} to 0
  24. send "{@tag} &aAdmin &c%player% &awylaczyl event!" to all players
  25. else:
  26. send "{@tag} &aEvent jest juz wylaczony!" to player
  27. on mine of stone:
  28. if {drop} is 1:
  29. if player's gamemode is survival:
  30. chance of 3%:
  31. drop diamond
  32. send "{@tag} &aWydropiles: &bDiament&a!" to player
  33. chance of 3%:
  34. drop gold ore
  35. send "{@tag} &aWydropiles: &eRude Zlota&a!" to player
  36. chance of 3%
  37. drop iron ore
  38. send "{@tag} &aWydropiles: Rude Zeleza&a!" to player
  39. every 1 second:
  40. if {czas.sec} is bigger than 0:
  41. remove 1 from {czas.sec}
  42. if {czas.sec} is 0:
  43. remove 1 from {czas.m}
  44. set {czas.sec} to 60
  45. if {czas.min} is 0:
  46. if {czas.sec} is 0
  47. set {drop} to 0
  48. set {event} to 0
  49. send "{@tag} &aDrop Eventowy wlasnie sie skonczyl" to all players
  50. if {event} is 1:
  51. loop all players:
  52. display "&6Koniec Eventu za: &a%{czas.min}% &6min &a%{czas.sec}% &6sec" on bossbar with 100 percent by 10 seconds for loop-players
Advertisement
Add Comment
Please, Sign In to add comment