Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every second:
- loop all players:
- if {OnDuty::%loop-player%} is true:
- if loop-player is in region "GuardDoor":
- make console execute command "/fill -644 89 356 -644 92 354 air"
- wait 1 second
- make console execute command "/clone -666 141 366 -666 144 368 -644 89 354"
- Stop
- Command /Duty:
- trigger:
- if player has permission "Guard.Duty":
- If {OnDuty::%player%} is true:
- set {OnDuty::%player%} to false
- broadcast "&4%player% &eis no longer on duty"
- else:
- set {OnDuty::%player%} to true
- broadcast "&4%player% &eis now on duty"
- on damage:
- if {OnDuty::%attacker%} is true:
- if {OnDuty::%victim%} is true:
- cancel event
- send "&aYou may not attack other guards."
- on death:
- player is victim
- on death:
- if {OnDuty::%attacker%} is true:
- cancel event
- clear the victim's inventory
- make console execute command "/minecraft:tp %player% -635 89 355"
- set {Time::%victim%} to 90
- loop 91 times:
- remove 1 from {Time::%player%}
- wait 1 second
- if {Time::%player%} = 0:
- make console execute command "/minecraft:tp %player% -642 89 365"
- Command /Spawn:
- trigger:
- stop
- Command /Espawn:
- trigger:
- stop
- Command /Essentials:Spawn:
- trigger:
- stop
- Every second:
- make console execute command "/Minecraft:pardon Gaurex"
- on damage:
- If attacker's tool is Blue wool:
- chance of 50%:
- if {OnDuty::%attacker%} is true:
- set {Tased::%victim%} to true
- send "&cYou have been tased" to victim
- wait 10 seconds
- set {Tased::%victim%} to false
- on any movement:
- if {Tased::%player%} is true:
- cancel event
- On damage:
- if {Tased::%attacker%} is true:
- cancel event
- send "&aYou are tased."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement