so i made a mistake when making a kills script. i made it so it saves variables to the player's username not uuid so when they change their name there kills get wiped. i know how i can change the skript to saving uuid but wouldn't that wipe every player's kills? anybody have any ways to transfer all of them. this is for a server with hundreds of members with most having hundreds of kills. thanks
{kill counter.%player%.kills_total} = 0
on death of player:
attacker is a player
if attacker is victim:
stop
add 1 to {kill counter.%attacker%.kills_total}
command /kills:
executable by: players
trigger:
message "You have %{kill counter.%player%.kills_total}% kills in total."
command /getkills [<offline player>]:
permission: skript.getkills
permission message: you dont have permission
trigger:
send "The player &b%arg-1% has &6%{kill counter.%arg-1%.kills_total}%&r kills in total." to player
command /minuskills [<offline player>] <number>:
permission: skript.minuskills
permission message: you dont have permission
trigger:
subtract arg-2 from {kill counter.%arg-1%.kills_total}
send "The player &b%arg-1%&r now has &6%{kill counter.%arg-1%.kills_total}%&r kills total" to player
command /addkills [<offline player>] <number>:
permission: skript.addkills
permission message: you dont have permission
trigger:
add arg-2 to {kill counter.%arg-1%.kills_total}
send "The player &b%arg-1%&r now has &6%{kill counter.%arg-1%.kills_total}%&r kills total" to player```