Player Stats
-----------------------------------------------------------------------------------------------------
Skript Version:
Skript-2.8.5
Used Addons:
Skript Reflect:
skript-reflect v2.4
-----------------------------------------------------------------------------------------------------
Top List and Player Stats offers the ability to manage the stats of your players easily. You can choose between a yaml config or the default skript variables as storage.
With TLaPS you can sort your stats from top to bottom and bottom to top!
If you are new to Skript or dont know how to use this ressource, i will give you a quick explanation. For this ressource to work, you need to download the addon called Skript-Reflect from the download link above. It is reccomendet to use the newest version of both Skript and Skript-Reflect. After you dragged Skript and Skript-Reflect to the
Server/plugins/ folder, you need to start and stop the server. After that you will find the
Server/plugins/Skript/scripts/ path. There you will need to place the
playerstatsAPI.sk file. After that you can use the syntax below to edit the stats of a player from any skript of your choice.
Happy Skripting
Example Usage:
Code (Text):
on break:
add 1 to stat "breaks" of player
command /getBreaks:
trigger:
send stat "breaks" of player
command /testAdd <offline player> <number>:
trigger:
set stat "breaks" of ("%arg-1%" parsed as offline player) to arg-2
command /topBreaks:
trigger:
set {_toplist::*} to "top" sorted stat list "breaks" formatted as "&e##<place>: &a<player>: &b<value>"
loop {_toplist::*}:
send loop-value
Available Parameters:
Sorting types: