SHOW:
|
|
- or go back to the newest paste.
| 1 | on join: | |
| 2 | set {pvp.%player%} to 0
| |
| 3 | ||
| 4 | on command: | |
| 5 | if {pvp.%player%} is 1:
| |
| 6 | cancel event | |
| 7 | send "&c&lVoce nao pode usar comandos em pvp." | |
| 8 | on damage: | |
| 9 | if attacker has permission "pvp.bypass": | |
| 10 | if {pvp.%victim%} is 0:
| |
| 11 | if {pvp.%attacker%} is 0:
| |
| 12 | stop | |
| 13 | else: | |
| 14 | if {pvp.%victim%} is 0:
| |
| 15 | if {pvp.%attacker%} is 0:
| |
| 16 | set {pvp.%victim%} to 1
| |
| 17 | set {pvp.%attacker%} to 1
| |
| 18 | send "&cVoce entrou em combate com &c&l%victim%" to attacker | |
| 19 | send "&cVoce entrou em combate com &c&l%attacker%" to victim | |
| 20 | wait 9 real seconds | |
| 21 | send "&cVoce saiu de combate com &c&l%victim%" to attacker | |
| 22 | send "&cVoce saiu de combate com &c&l%attacker%" to victim | |
| 23 | set {pvp.%victim%} to 0
| |
| 24 | set {pvp.%attacker%} to 0
| |
| 25 | on quit: | |
| 26 | - | kick player due to "&cBanido por fugir em pvp" |
| 26 | + | |
| 27 | kill the player | |
| 28 | broadcast "&c&l%player%&c levou ban por fugir em pvp por 1 minuto" | |
| 29 | kick the player due to "&c&l%player%&c levou ban por fugir em pvp por 1 minuto" | |
| 30 | ban the player | |
| 31 | wait 1 minute | |
| 32 | unban the player | |
| 33 | else: | |
| 34 | teleport player to spawn |