View difference between Paste ID: TmbM7f0n and vm9HHt44
SHOW: | | - or go back to the newest paste.
1
on first join:
2
		set {kills::%UUID of player%} to 0
3
		set {deaths::%UUID of player%} to 0
4
		set {kd::%UUID of player%} to 0
5
on death:
6
		victim is a player
7
		add 1 to {deaths::%UUID of victim%}
8
		if attacker is a player:
9-
			add 1 to {kills::%UUID of attacker%}
9+
				add 1 to {kills::%UUID of attacker%}
10
every tick:
11
	loop all players:
12
		set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
13
command /playerstats [<player>]:
14
	aliases: /pstats
15
	usage: "&cUsage:/playerstats <player>"
16
	trigger:
17
		if arg-1 is set:
18
			send "&6================&4&lStats&6================"
19
			send "&4%arg-1%'s stats"
20
			send "&4Kills: &6{kills::%arg-1%}"
21
			send "&4Deaths: &6{deaths::%arg-1%}"
22
			send "&4KD: &6{kd::%arg-1%}"
23
			send "&6================&4&lStats&6================"
24
		if arg-1 is not set:
25
			send "&6================&4&lStats&6================"
26
			send "&4%player%'s stats"
27
			send "&4Kills: &6{kills::%UUID of player%}"
28
			send "&4Deaths: &6{deaths::%UUID of player%}"
29
			send "&4KD: &6{kd::%UUID of player%}"
30
			send "&6================&4&lStats&6================"