Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- wait 10 second
- set {ochrona.%player%} to true
- send "&aJestes chroniony przez {@ochrona}"
- wait {@ochrona}
- set {ochrona.%player%} to false
- on damage:
- victim is player
- attacker is player
- if {ochrona.%victim%} is true:
- cancel event
- if {ochrona.%attacker%} is true:
- cancel event
- else:
- if {inbattle.%victim%} is true:
- set {walka.%victim%} to {@czaswalki}
- remove bossbar from victim
- display "{@walkatxt}" on bossbar with 100 percent by 10 seconds for victim
- stop
- display "{@walkatxt}" on bossbar with 100 percent by 10 seconds for victim
- set {inbattle.%victim%} to true
- set {walka.%victim%} to {@czaswalki}
- while {walka.%victim%} is more than 0:
- {walka.%victim%} is not set:
- stop
- subtract 1 from {walka.%victim%}
- wait 1 second
- delete {inbattle.%victim%}
- delete {walka.%victim%}
- remove bossbar from victim
- display "{@koniecwalki}" on bossbar with 0 percent by 10 seconds for victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement