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