✨「JM」 Stats | An Advanced Stats Skript ✨ icon

✨「JM」 Stats | An Advanced Stats Skript ✨ -----

An Advanced Stats Skript



  • CaptDAWDAure.PNG

Need a Stats plugin for your server? (PVP, skyblock, prison, factions, town, survival) Haven't found the best one yet? This Stats plugin will provide all the features you need.

I have only tested this on 1.8.8 spigot!

Requirements


Commands

/stats
/playtime

Code (Text):
#     __________________________________________________________
#    / /                                                   / /\ \
#    \_\___________________________________________________\_\/ /
#        / /    _____    __            __                    / /
#       / /    / ____\  / /           /_/          /\       / /
#      / /    / /__    / /___  ___   __  ______ __/ /_     / /
#     / /     \___ \  /   __/ / __\ / / / __  //_  __/    / /
#    / /     ____/ / / /\ \  / /   / / / /_/ /  / /      / /
#   / /     \_____/ /_/ /_/ /_/   /_/ / ____/  /_/      / /__
#  / /    ========================== / / ==========    / / \ \
# | |                               /_/               | |   | |
#  \_\_________________________________________________\_\_/_/



#                                                #
#                                                #
#        「JM」 Stats | An Advanced Stats Skript     #
#                                                #
#                Coded by Joelmatic :)            #
#                                                #
#                      ENJOY                        #
#                                                #
#                                                #


#                                             #
#                                             #
#                     Code                     #
#                                             #
#        Dont edit if you dont understand it     #
#                                             #
#                                             #

variables:
    {kill counter.%player%.kills_session} = 0
    {kill counter.%player%.kills_total} = 0
    {kill counter.%player%.deaths_total} = 0

every second:
    loop all players:
        add 1 to {s::%loop-player's uuid%}
        if {s::%loop-player's uuid%} > 59:
            remove 60 from {s::%loop-player's uuid%}
            add 1 to {m::%loop-player's uuid%}
        if {m::%loop-player's uuid%} > 59:
            remove 60 from {m::%loop-player's uuid%}
            add 1 to {h::%loop-player's uuid%}
        if {h::%loop-player's uuid%} > 23:
            remove 24 from {h::%loop-player's uuid%}
            add 1 to {d::%loop-player's uuid%}
         
on break:
  if {blocks.broken.%player%} is not set:
    set {blocks.broken.%player%} to 0
    wait 4 ticks
    set {blocks.broken.%player%} to {blocks.broken.%player%} + 1

on death:
    attacker is a player
    add 1 to {kill counter.%attacker%.kills_total}
    add 1 to {kill counter.%attacker%.kills_session}
     
on death of player:
    set {kill counter.%player%.kills_session} to 0
    add 1 to {kill counter.%player%.deaths_total}


command /stats:
    aliases: stast, playtime
    trigger:
        wait 1 tick
        send "&8&m------»&7 %player% &8&m«------"
        send ""
        send "&b&l    YOUR SATATS"
        send ""
        send "&3»&l Ping: &f%player's ping%"
        send "&3»&l Blocks &f%{blocks.broken.%player%}%"
        send ""
        send "&b&l    KILL SATATS"
        send ""
        send "&3»&lYou have killed &f%{kill counter.%player%.kills_total}% &3&lPlayers in total."
        send "&3»&lYou have died &f%{kill counter.%player%.deaths_total}% &3&ltimes. "
        send "&3»&lYour killstreak is &f%{kill counter.%player%.kills_session}%."
        send ""
        send "&b&l    YOUR PLAYTIME"
        send ""
        send "&3»&l SECONDS:&f %{s::%player's uuid%}%"
        send "&3»&l MINUTES:&f %{m::%player's uuid%}%"
        send "&3»&l HOURS:&f %{h::%player's uuid%}%"
        send "&3»&l DAYS:&f %{d::%player's uuid%}%"
        send ""
        send "&8&m------»&7 %player% &8&m«------"
         
     
 

leave a review if you like the skript!
Resource Information
Author:
----------
Total Downloads: 196
First Release: May 9, 2021
Last Update: May 9, 2021
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings