View difference between Paste ID: tGEX8Hj5 and y8Q1V2Ux
SHOW: | | - or go back to the newest paste.
1-
on first join:
1+
on firt join:
2-
	set {kills::%UUID of player%} to 0
2+
		set {kills::%UUID of player%} to 0
3-
	set {deaths::%UUID of player%} to 0
3+
		set {deaths::%UUID of player%} to 0
4-
	set {kd::%UUID of player%} to 0
4+
		set {kd::%UUID of player%} to 0
5-
on join:
5+
6-
	set {login.%UUID of player%} to 1
6+
		victim is a player
7
		add 1 to {deaths::%UUID of victim%}
8-
	victim is a player
8+
		if attacker is a player:
9-
	if attacker is a player:
9+
			add 1 to {kills::%UUID of attacker%}
10-
		set {deathpoint.%UUID of victim%} to location of victim
10+
11-
		force victim to respawn
11+
12-
		teleport victim to {deathpoint.%UUID of victim%}
12+
		set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
13-
		delete {deathpoint.%UUID of victim%}
13+
command /playerstats [<player>]:
14
	aliases: /pstats
15-
		add 1 to {kills::%UUID of attacker%}
15+
	usage: "&cUsage:/playerstats <player>"
16-
		wait 1 tick
16+
17-
		set victim's gamemode to spectator
17+
18-
		wait 5 second
18+
			send "&6================&4&lStats&6================"
19-
		set victim's gamemode to adventure
19+
			send "&4%arg-1%'s stats"
20-
		teleport victim to world's spawn point
20+
			send "&4Kills: &6{kills::%arg-1%}"
21-
		set the death message to "&4&l%victim%&6は&4&l%attacker%&6に殺された"
21+
			send "&4Deaths: &6{deaths::%arg-1%}"
22-
	else:
22+
			send "&4KD: &6{kd::%arg-1%}"
23
			send "&6================&4&lStats&6================"
24-
		force victim to respawn
24+
25-
		set the death message to "&4&l%victim%&6は死亡した"
25+
			send "&6================&4&lStats&6================"
26
			send "&4%player%'s stats"
27
			send "&4Kills: &6{kills::%UUID of player%}"
28-
		if {deaths::%UUID of loop-player%} is not 0:
28+
			send "&4Deaths: &6{deaths::%UUID of player%}"
29-
			set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
29+
			send "&4KD: &6{kd::%UUID of player%}"
30-
		if {deaths::%UUID of loop-player%} is 0:
30+
			send "&6================&4&lStats&6================"