SHOW:
|
|
- or go back to the newest paste.
1 | on join: | |
2 | set {pvp.%player%} to 0 | |
3 | ||
4 | on damage: | |
5 | - | if player has permission "pvp.bypass": |
5 | + | if attacker has permission "pvp.bypass": |
6 | if {pvp.%victim%} is 0: | |
7 | if {pvp.%attacker%} is 0: | |
8 | - | stop |
8 | + | stop |
9 | - | |
9 | + | |
10 | if {pvp.%victim%} is 0: | |
11 | if {pvp.%attacker%} is 0: | |
12 | set {pvp.%victim%} to 1 | |
13 | set {pvp.%attacker%} to 1 | |
14 | wait 10 seconds | |
15 | send "&cVoce saiu de combate com &c&l%victim%" to attacker | |
16 | send "&cVoce saiu de combate com &c&l%attacker%" to victim | |
17 | set {pvp.%victim%} to 0 | |
18 | set {pvp.%attacker%} to 0 | |
19 | on quit: | |
20 | if {pvp.%player%} is 1: | |
21 | kick player due to "&cBanido por fugir em pvp" | |
22 | broadcast "&c&l%player%&c levou ban por fugir em pvp por 1 minutp" | |
23 | set {bantemp.%player%} to 1 | |
24 | set {bantemp.agora.%player%} to now | |
25 | on join: | |
26 | if {bantemp.%player%} is set: | |
27 | set {_tempban} to difference between now and {bantemp.agora.%player%} | |
28 | reduce {_tempban} by {bantemp.%player%} | |
29 | if difference between now and {bantemp.agora.%player%} is bigger than {bantemp.%player%}: | |
30 | stop | |
31 | clear {bantemp.%player%} | |
32 | clear {bantemp.agora.%player%} | |
33 | if difference between now and {bantemp.agora.%player%} is smaller than {bantemp.%player%}: | |
34 | wait 1 second | |
35 | kick player because "&c&lVoce esta banido por fugir em pvp por 1 minutp" |