HomeJavaModsTop List and Player Stats
Top List and Player Stats
[​IMG]


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:

stat-api "top" sorted stat list
stat-api "bottom" sorted stat list
Click to expand...
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Top List and Player Stats is a free Minecraft Java mod. Compatible with Minecraft 1.20. Downloaded 654 times (via Spigot). Download it and open it directly in the game.

Explore more