Advertisement
Savanis

Untitled

Dec 31st, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. every second:
  2. loop all players:
  3. if {OnDuty::%loop-player%} is true:
  4. if loop-player is in region "GuardDoor":
  5. make console execute command "/fill -644 89 356 -644 92 354 air"
  6. wait 1 second
  7. make console execute command "/clone -666 141 366 -666 144 368 -644 89 354"
  8. Stop
  9. Command /Duty:
  10. trigger:
  11. if player has permission "Guard.Duty":
  12. If {OnDuty::%player%} is true:
  13. set {OnDuty::%player%} to false
  14. broadcast "&4%player% &eis no longer on duty"
  15. else:
  16. set {OnDuty::%player%} to true
  17. broadcast "&4%player% &eis now on duty"
  18. on damage:
  19. if {OnDuty::%attacker%} is true:
  20. if {OnDuty::%victim%} is true:
  21. cancel event
  22. send "&aYou may not attack other guards."
  23. on death:
  24. player is victim
  25. broadcast "&4%attacker% &ehas killed &4%victim%"
  26. on death:
  27. if {OnDuty::%attacker%} is true:
  28. cancel event
  29. clear the victim's inventory
  30. make console execute command "/minecraft:tp %player% -635 89 355"
  31. set {Time::%victim%} to 90
  32. loop 91 times:
  33. remove 1 from {Time::%player%}
  34. wait 1 second
  35. if {Time::%player%} = 0:
  36. make console execute command "/minecraft:tp %player% -642 89 365"
  37. Command /Spawn:
  38. trigger:
  39. stop
  40. Command /Espawn:
  41. trigger:
  42. stop
  43. Command /Essentials:Spawn:
  44. trigger:
  45. stop
  46. Every second:
  47. make console execute command "/Minecraft:pardon Gaurex"
  48. on damage:
  49. If attacker's tool is Blue wool:
  50. chance of 50%:
  51. set {Tased::%victim%} to true
  52. send "&cYou have been tased" to victim
  53. wait 10 seconds
  54. set {Tased::%victim%} to false
  55. on any movement:
  56. if {Tased::%player%} is true:
  57. cancel event
  58. On damage:
  59. if {Tased::%attacker%} is true:
  60. cancel event
  61. send "&aYou are tased."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement