View difference between Paste ID: nhGq0Gws and 18HXaAqx
SHOW: | | - or go back to the newest paste.
1
on join:
2
	set {pvp.%player%} to 0
3-
 
3+
4
on damage:
5
	if attacker has permission "pvp.bypass":
6
		if {pvp.%victim%} is 0:
7
			if {pvp.%attacker%} is 0:
8
	 			stop			
9
	else:
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
				send "&cVoce entrou em combate com &c&l%victim%" to attacker
15
				send "&cVoce entrou em combate com &c&l%attacker%" to victim			
16
				wait 9 real seconds
17
				send "&cVoce saiu de combate com &c&l%victim%" to attacker
18
				send "&cVoce saiu de combate com &c&l%attacker%" to victim
19
				set {pvp.%victim%} to 0
20
				set {pvp.%attacker%} to 0
21
on quit:
22
	if {pvp.%player%} is 1:
23
		kick player due to "&cBanido por fugir em pvp"
24
		broadcast "&c&l%player%&c levou ban por fugir em pvp por 1 minuto"	
25
		kick the player due to "&c&l%player%&c levou ban por fugir em pvp por 1 minuto"		
26-
		ban the player because "&c&l%player%&c levou ban por fugir em pvp por 1 minuto"		
26+
		ban the player	
27
		wait 1 minute
28
		unban the player
29
	else:
30
		teleport player to spawn