View difference between Paste ID: NbazPq0M and DHZSFGQv
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
on death:
9
		victim is a player
10
		attacker is a player
11
		add 1 to {kills::%UUID of attacker%}
12
every tick:
13
	loop all players:
14
		set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
15
command /playerstats [<player>]:
16-
	aliases: /ps
16+
	aliases: /pstats
17
	usage: "&c/playerstats <player>"
18
	trigger:
19
		if arg-1 is set:
20
			send "&6================&4&lStats&6================"
21
			send "&4%arg-1%'s stats"
22
			send "&4Kills: &6%{kills::%UUID of arg-1%}%"
23
			send "&4Deaths: &6%{deaths::%UUID of arg-1%}%"
24
			send "&4KD: &6%{kd::%UUID of arg-1%}%"
25
			send "&6================&4&lStats&6================"
26
		if arg-1 is not set:
27
			send "&6================&4&lStats&6================"
28
			send "&4%player%'s stats"
29
			send "&4Kills: &6%{kills::%UUID of player%}%"
30
			send "&4Deaths: &6%{deaths::%UUID of player%}%"
31
			send "&4KD: &6%{kd::%UUID of player%}%"
32
			send "&6================&4&lStats&6================"