Solved Need help to update player to player's uuid

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Felix Halks

Member
Feb 22, 2021
4
0
1
24
Hi im learning skript and i need help to update player to player's uuid i can't seem to figure out how so im asking for help. In the skript everything is ok, i can see my stats if i replace &player& to &player's uuid% but when it comes to see other players stats it doesn't work i tried everyting i could think of but nothing works. same for the command /resetsimplestats... The question here is: What should i replace the %{_player}% value with?

Code:
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
#                                                           #
#SimpleStats                                                 #
#Created by halks514 v2.4                                    #
#                                                           #
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#

on break:
    if tool is a pickaxe:
        add 1 to {pickaxe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    Else if tool is a shovel:
        add 1 to {shovel.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is a axe:
        add 1 to {axe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is nothing:
        add 1 to {nothing.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else:
        add 1 to {blocks.broken.%player's uuid%}
command /simplestats [<offline player>]:
    permission: ss.see
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: ss
    trigger:
        if arg-1 is "help":
            player have permission "ss.help":
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
                message "&a/ss or /simplestats "
                message "&b/simplestats help &7- &7to see this page "
                message "&b/simplestats &7- &7to see your stats "
                message "&b/simplestats &a(player) &7- &7to see a player's stats "
                message "&b/resetsimplestats &a(player) &7- &7to reset a player's stats "
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
        if arg-1 is not set:
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            message "&6Pickaxe: &7- &b%{pickaxe.break.%player's uuid%}% "
            message "&6Shovel: &7- &b%{shovel.break.%player's uuid%}%"
            message "&6Axe: &7- &b%{axe.break.%player's uuid%}%"
            message "&6Hand: &7- &b%{nothing.break.%player's uuid%}%"
            message "&aTotal Blocks Broken &2- &d%{blocks.broken.%player's uuid%}%"
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
        else:
            if player have permission "ss.see.others":
                set {_player} to arg-1
                wait 1 tick
                if {_player} has played on this server before:
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%{_player}%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
                    message "&6Pickaxe: &7- &b%{pickaxe.break.%{_player}%}% "
                    message "&6Shovel: &7- &b%{shovel.break.%{_player}%}%"
                    message "&6Axe: &7- &b%{axe.break.%{_player}%}%"
                    message "&6Hand: &7- &b%{nothing.break.%{_player}%}%"
                    message "&aTotal Blocks Broken &2- &d%{blocks.broken.%{_player}%}%"
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%{_player}%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            else:
                message "&7[&bSimpleStats&7] &cYou don`t have permission for this command."
                
command /resetsimplestats [<offline player>]:
    permission: ss.reset
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: rss
    trigger:
        if arg-1 is not set:
            message "&7Usage&e:&b /resetsimplestats &7(&aPlayer&7)"
        else:
            set {_player} to arg-1
            wait 1 tick
            if {_player} has played on this server before:
                set {pickaxe.break.%{_player}%} to 0
                set {nothing.break.%{_player}%} to 0
                set {shovel.break.%{_player}%} to 0
                set {axe.break.%{_player}%} to 0
                set {blocks.broken.%{_player}%} to 0
                message "&7[&bSimpleStats&7] &bStats of &a%{_player}%&b has been reset!"
            else:
                message "&7[&bSimpleStats&7] &cPlayer &a%{_player}% &cnot found!"
on join:
    if {pickaxe.break.%player's uuid%} is not set:
        set {pickaxe.break.%player's uuid%} to 0
    if {nothing.break.%player's uuid%} is not set:
        set {nothing.break.%player's uuid%} to 0
    if {shovel.break.%player's uuid%} is not set:
        set {shovel.break.%player's uuid%} to 0
    if {axe.break.%player's uuid%} is not set:
        set {axe.break.%player's uuid%} to 0
    if {blocks.broken.%player's uuid%} is not set:
        set {blocks.broken.%player's uuid%} to 0
 
Code:
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
#                                                           #
#SimpleStats                                                 #
#Created by halks514 v2.4                                    #
#                                                           #
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
 
on break:
    if tool is a pickaxe:
        add 1 to {pickaxe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    Else if tool is a shovel:
        add 1 to {shovel.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is a axe:
        add 1 to {axe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is nothing:
        add 1 to {nothing.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else:
        add 1 to {blocks.broken.%player's uuid%}
command /simplestats [<offline player>]:
    permission: ss.see
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: ss
    trigger:
        if arg-1 is "help":
            player have permission "ss.help":
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
                message "&a/ss or /simplestats "
                message "&b/simplestats help &7- &7to see this page "
                message "&b/simplestats &7- &7to see your stats "
                message "&b/simplestats &a(player) &7- &7to see a player's stats "
                message "&b/resetsimplestats &a(player) &7- &7to reset a player's stats "
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
        if arg-1 is not set:
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            message "&6Pickaxe: &7- &b%{pickaxe.break.%player's uuid%}% "
            message "&6Shovel: &7- &b%{shovel.break.%player's uuid%}%"
            message "&6Axe: &7- &b%{axe.break.%player's uuid%}%"
            message "&6Hand: &7- &b%{nothing.break.%player's uuid%}%"
            message "&aTotal Blocks Broken &2- &d%{blocks.broken.%player's uuid%}%"
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
        else:
            if player have permission "ss.see.others":
                set {_player} to arg-1
                wait 1 tick
                if {_player} has played on this server before:
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%{_player}'s uuid%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
                    message "&6Pickaxe: &7- &b%{pickaxe.break.%{_player}'s uuid%}% "
                    message "&6Shovel: &7- &b%{shovel.break.%{_player}'s uuid%}%"
                    message "&6Axe: &7- &b%{axe.break.%{_player}'s uuid%}%"
                    message "&6Hand: &7- &b%{nothing.break.%{_player}'s uuid%}%"
                    message "&aTotal Blocks Broken &2- &d%{blocks.broken.%{_player}%}%"
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%{_player}%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            else:
                message "&7[&bSimpleStats&7] &cYou don`t have permission for this command."
              
command /resetsimplestats [<offline player>]:
    permission: ss.reset
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: rss
    trigger:
        if arg-1 is not set:
            message "&7Usage&e:&b /resetsimplestats &7(&aPlayer&7)"
        else:
            set {_player} to arg-1
            wait 1 tick
            if {_player} has played on this server before:
                set {pickaxe.break.%{_player}'s uuid%} to 0
                set {nothing.break.%{_player}'s uuid%} to 0
                set {shovel.break.%{_player}'s uuid%} to 0
                set {axe.break.%{_player}'s uuid%} to 0
                set {blocks.broken.%{_player}'s uuid%} to 0
                message "&7[&bSimpleStats&7] &bStats of &a%{_player}%&b has been reset!"
            else:
                message "&7[&bSimpleStats&7] &cPlayer &a%{_player}% &cnot found!"
on join:
    if {pickaxe.break.%player's uuid%} is not set:
        set {pickaxe.break.%player's uuid%} to 0
    if {nothing.break.%player's uuid%} is not set:
        set {nothing.break.%player's uuid%} to 0
    if {shovel.break.%player's uuid%} is not set:
        set {shovel.break.%player's uuid%} to 0
    if {axe.break.%player's uuid%} is not set:
        set {axe.break.%player's uuid%} to 0
    if {blocks.broken.%player's uuid%} is not set:
        set {blocks.broken.%player's uuid%} to 0
 
Code:
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
#                                                           #
#SimpleStats                                                 #
#Created by halks514 v2.4                                    #
#                                                           #
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
 
on break:
    if tool is a pickaxe:
        add 1 to {pickaxe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    Else if tool is a shovel:
        add 1 to {shovel.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is a axe:
        add 1 to {axe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is nothing:
        add 1 to {nothing.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else:
        add 1 to {blocks.broken.%player's uuid%}
command /simplestats [<offline player>]:
    permission: ss.see
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: ss
    trigger:
        if arg-1 is "help":
            player have permission "ss.help":
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
                message "&a/ss or /simplestats "
                message "&b/simplestats help &7- &7to see this page "
                message "&b/simplestats &7- &7to see your stats "
                message "&b/simplestats &a(player) &7- &7to see a player's stats "
                message "&b/resetsimplestats &a(player) &7- &7to reset a player's stats "
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
        if arg-1 is not set:
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            message "&6Pickaxe: &7- &b%{pickaxe.break.%player's uuid%}% "
            message "&6Shovel: &7- &b%{shovel.break.%player's uuid%}%"
            message "&6Axe: &7- &b%{axe.break.%player's uuid%}%"
            message "&6Hand: &7- &b%{nothing.break.%player's uuid%}%"
            message "&aTotal Blocks Broken &2- &d%{blocks.broken.%player's uuid%}%"
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
        else:
            if player have permission "ss.see.others":
                set {_player} to arg-1
                wait 1 tick
                if {_player} has played on this server before:
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%{_player}'s uuid%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
                    message "&6Pickaxe: &7- &b%{pickaxe.break.%{_player}'s uuid%}% "
                    message "&6Shovel: &7- &b%{shovel.break.%{_player}'s uuid%}%"
                    message "&6Axe: &7- &b%{axe.break.%{_player}'s uuid%}%"
                    message "&6Hand: &7- &b%{nothing.break.%{_player}'s uuid%}%"
                    message "&aTotal Blocks Broken &2- &d%{blocks.broken.%{_player}%}%"
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%{_player}%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            else:
                message "&7[&bSimpleStats&7] &cYou don`t have permission for this command."
          
command /resetsimplestats [<offline player>]:
    permission: ss.reset
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: rss
    trigger:
        if arg-1 is not set:
            message "&7Usage&e:&b /resetsimplestats &7(&aPlayer&7)"
        else:
            set {_player} to arg-1
            wait 1 tick
            if {_player} has played on this server before:
                set {pickaxe.break.%{_player}'s uuid%} to 0
                set {nothing.break.%{_player}'s uuid%} to 0
                set {shovel.break.%{_player}'s uuid%} to 0
                set {axe.break.%{_player}'s uuid%} to 0
                set {blocks.broken.%{_player}'s uuid%} to 0
                message "&7[&bSimpleStats&7] &bStats of &a%{_player}%&b has been reset!"
            else:
                message "&7[&bSimpleStats&7] &cPlayer &a%{_player}% &cnot found!"
on join:
    if {pickaxe.break.%player's uuid%} is not set:
        set {pickaxe.break.%player's uuid%} to 0
    if {nothing.break.%player's uuid%} is not set:
        set {nothing.break.%player's uuid%} to 0
    if {shovel.break.%player's uuid%} is not set:
        set {shovel.break.%player's uuid%} to 0
    if {axe.break.%player's uuid%} is not set:
        set {axe.break.%player's uuid%} to 0
    if {blocks.broken.%player's uuid%} is not set:
        set {blocks.broken.%player's uuid%} to 0

I tried replacing it with %{_player}'s uuid% but it gives me error and also it gives me the uuid number of the player, not the name
 
Last edited:
Code:
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
#                                                           #
#SimpleStats                                                 #
#Created by halks514 v2.4                                    #
#                                                           #
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
 
on break:
    if tool is a pickaxe:
        add 1 to {pickaxe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    Else if tool is a shovel:
        add 1 to {shovel.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is a axe:
        add 1 to {axe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is nothing:
        add 1 to {nothing.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else:
        add 1 to {blocks.broken.%player's uuid%}
command /simplestats [<offline player>]:
    permission: ss.see
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: ss
    trigger:
        if arg-1 is "help":
            player have permission "ss.help":
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
                message "&a/ss or /simplestats "
                message "&b/simplestats help &7- &7to see this page "
                message "&b/simplestats &7- &7to see your stats "
                message "&b/simplestats &a(player) &7- &7to see a player's stats "
                message "&b/resetsimplestats &a(player) &7- &7to reset a player's stats "
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
        if arg-1 is not set:
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            message "&6Pickaxe: &7- &b%{pickaxe.break.%player's uuid%}% "
            message "&6Shovel: &7- &b%{shovel.break.%player's uuid%}%"
            message "&6Axe: &7- &b%{axe.break.%player's uuid%}%"
            message "&6Hand: &7- &b%{nothing.break.%player's uuid%}%"
            message "&aTotal Blocks Broken &2- &d%{blocks.broken.%player's uuid%}%"
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
        else:
            if player have permission "ss.see.others":
                set {_player} to arg-1
                wait 1 tick
                if {_player} has played on this server before:
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%arg-1%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
                    message "&6Pickaxe: &7- &b%{pickaxe.break.%arg-1's uuid%}% "
                    message "&6Shovel: &7- &b%{shovel.break.%arg-1's uuid%}%"
                    message "&6Axe: &7- &b%{axe.break.%arg-1's uuid%}%"
                    message "&6Hand: &7- &b%{nothing.break.%arg-1's uuid%}%"
                    message "&aTotal Blocks Broken &2- &d%{blocks.broken.%arg-1's uuid%}%"
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%arg-1%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            else:
                message "&7[&bSimpleStats&7] &cYou don`t have permission for this command."
        
command /resetsimplestats [<offline player>]:
    permission: ss.reset
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: rss
    trigger:
        if arg-1 is not set:
            message "&7Usage&e:&b /resetsimplestats &7(&aPlayer&7)"
        else:
            set {_player} to arg-1
            wait 1 tick
            if {_player} has played on this server before:
                set {pickaxe.break.%arg-1's uuid%} to 0
                set {nothing.break.%arg-1's uuid%} to 0
                set {shovel.break.%arg-1's uuid%} to 0
                set {axe.break.%arg-1's uuid%} to 0
                set {blocks.broken.%arg-1's uuid%} to 0
                message "&7[&bSimpleStats&7] &bStats of &a%arg-1%&b has been reset!"
            else:
                message "&7[&bSimpleStats&7] &cPlayer &a%{_player}% &cnot found!"
on join:
    if {pickaxe.break.%player's uuid%} is not set:
        set {pickaxe.break.%player's uuid%} to 0
    if {nothing.break.%player's uuid%} is not set:
        set {nothing.break.%player's uuid%} to 0
    if {shovel.break.%player's uuid%} is not set:
        set {shovel.break.%player's uuid%} to 0
    if {axe.break.%player's uuid%} is not set:
        set {axe.break.%player's uuid%} to 0
    if {blocks.broken.%player's uuid%} is not set:
        set {blocks.broken.%player's uuid%} to 0
 
Code:
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
#                                                           #
#SimpleStats                                                 #
#Created by halks514 v2.4                                    #
#                                                           #
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
 
on break:
    if tool is a pickaxe:
        add 1 to {pickaxe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    Else if tool is a shovel:
        add 1 to {shovel.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is a axe:
        add 1 to {axe.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else if tool is nothing:
        add 1 to {nothing.break.%player's uuid%}
        add 1 to {blocks.broken.%player's uuid%}
    else:
        add 1 to {blocks.broken.%player's uuid%}
command /simplestats [<offline player>]:
    permission: ss.see
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: ss
    trigger:
        if arg-1 is "help":
            player have permission "ss.help":
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
                message "&a/ss or /simplestats "
                message "&b/simplestats help &7- &7to see this page "
                message "&b/simplestats &7- &7to see your stats "
                message "&b/simplestats &a(player) &7- &7to see a player's stats "
                message "&b/resetsimplestats &a(player) &7- &7to reset a player's stats "
                message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats Help &8&m]&7&m---&b&m---&7&m---"
        if arg-1 is not set:
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            message "&6Pickaxe: &7- &b%{pickaxe.break.%player's uuid%}% "
            message "&6Shovel: &7- &b%{shovel.break.%player's uuid%}%"
            message "&6Axe: &7- &b%{axe.break.%player's uuid%}%"
            message "&6Hand: &7- &b%{nothing.break.%player's uuid%}%"
            message "&aTotal Blocks Broken &2- &d%{blocks.broken.%player's uuid%}%"
            message "&7&m---&b&m---&7&m---&8&m[&r &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
        else:
            if player have permission "ss.see.others":
                set {_player} to arg-1
                wait 1 tick
                if {_player} has played on this server before:
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%arg-1%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
                    message "&6Pickaxe: &7- &b%{pickaxe.break.%arg-1's uuid%}% "
                    message "&6Shovel: &7- &b%{shovel.break.%arg-1's uuid%}%"
                    message "&6Axe: &7- &b%{axe.break.%arg-1's uuid%}%"
                    message "&6Hand: &7- &b%{nothing.break.%arg-1's uuid%}%"
                    message "&aTotal Blocks Broken &2- &d%{blocks.broken.%arg-1's uuid%}%"
                    message "&7&m---&b&m---&7&m---&8&m[&r &a&l%arg-1%'s &b&lSimple Stats &8&m]&7&m---&b&m---&7&m---"
            else:
                message "&7[&bSimpleStats&7] &cYou don`t have permission for this command."
       
command /resetsimplestats [<offline player>]:
    permission: ss.reset
    permission message: &7[&bSimpleStats&7] &cYou don`t have permission for this command.
    aliases: rss
    trigger:
        if arg-1 is not set:
            message "&7Usage&e:&b /resetsimplestats &7(&aPlayer&7)"
        else:
            set {_player} to arg-1
            wait 1 tick
            if {_player} has played on this server before:
                set {pickaxe.break.%arg-1's uuid%} to 0
                set {nothing.break.%arg-1's uuid%} to 0
                set {shovel.break.%arg-1's uuid%} to 0
                set {axe.break.%arg-1's uuid%} to 0
                set {blocks.broken.%arg-1's uuid%} to 0
                message "&7[&bSimpleStats&7] &bStats of &a%arg-1%&b has been reset!"
            else:
                message "&7[&bSimpleStats&7] &cPlayer &a%{_player}% &cnot found!"
on join:
    if {pickaxe.break.%player's uuid%} is not set:
        set {pickaxe.break.%player's uuid%} to 0
    if {nothing.break.%player's uuid%} is not set:
        set {nothing.break.%player's uuid%} to 0
    if {shovel.break.%player's uuid%} is not set:
        set {shovel.break.%player's uuid%} to 0
    if {axe.break.%player's uuid%} is not set:
        set {axe.break.%player's uuid%} to 0
    if {blocks.broken.%player's uuid%} is not set:
        set {blocks.broken.%player's uuid%} to 0

I think it works properly now thank you so much!
 
Status
Not open for further replies.