Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
#Skript de Stats by Crazy_Street_
#chaine : https://www.youtube.com/channel/UCOftgOYYvp5_JA_hxTmpZ8A
on join:
if {stats.kill.%player%} is not set:
set {stats.kill.%player%} to 0
if {stats.death.%player%} is not set:
set {stats.death.%player%} to 0
if {build.%player%} is not set:
set {build.%player%} to 0
if {break.%player%} is not set:
set {break.%player%} to 0
if {clic.total.%player%} is not set:
set {clic.total.%player%} to 0
if {speak.%player%} is not set:
set {speak.%player%} to 0
if {sneak.%player%} is not set:
set {sneak.%player%} to 0
if {coupdonne.%player%} is not set:
set {coupdonne.%player%} to 0
if {couprecu.%player%} is not set:
set {couprecu.%player%} to 0
on damage:
victim is a player
attacker is a player
add 1 to {coupdonne.%attacker%}
add 1 to {couprecu.%victim%}
on sneak toggle:
add 1 to {sneak.%player%}
on chat:
add 1 to {speak.%player%}
on place:
add 1 to {build.%player%}
on break:
add 1 to {break.%player%}
on click:
add 1 to {clic.total.%player%}
on death:
add 1 to {stats.death.%player%}
command /stats [<offline player>] [<text>]:
trigger:
if arg 1 is not set:
message "&f- - &c&lStatistiques de &4&l%player% &f- -"
message ""
message "Nombre de kills: %{stats.kill.%player%}%"
message "Nombre de morts: %{stats.death.%player%}%"
message "Blocks builds: %{build.%player%}%"
message "Blocks break: %{break.%player%}%"
message "Clics Total : %{clic.total.%player%}%"
message "Message chat : %{speak.%player%}%"
message "Nombre de sneak : %{sneak.%player%}%"
message "Nombre de coup donnés : %{coupdonne.%player%}%"
message "Nombre de coup reçus : %{couprecu.%player%}%"
message "&f- - - - - - - - - - - - - - - - - - - - - - -"
else:
message "&f- - - &c&lStatisiques de &4&l%arg 1% &f- - -"
message ""
message "Nombre de kills: %{stats.kill.%arg-1%}%"
message "Nombre de morts: %{stats.death.%arg-1%}%"
message "Blocks builds: %{build.%arg-1%}%"
message "Blocks break: %{break.%arg-1%}%"
message "Clics Total : %{clic.total.%arg-1%}%"
message "Nombre de sneak : %{sneak.%arg-1%}%"
message "Nombre de coup donnés : %{coupdonne.%arg-1%}%"
message "Nombre de coup reçus : %{couprecu.%arg-1%}%"
message "&f- - - - - - - - - - - - - - - - - - - - - - -"