on join:
set {totaltime::%player's uuid%::seconds} to 0
set {totaltime::%player's uuid%::hours} to 0
set {balance::%player's uuid%} to player's balance
if player is in world "Spawn":
wipe player's sidebar
set name of sidebar of player to "&9== &bNexus &9==&6"
set score " " in sidebar of player to 7
set score "&7Joueur: &b%player%" in sidebar of player to 6
set id score "&7NexusCoins: &b%balance of player%" in sidebar of player to 5 with id "balance.%player's uuid%"
set id score "&7Clicks: &b%{click.%player's uuid%}%" in sidebar of player to 4 with id "clicks.%player's uuid%"
set score " " in sidebar of player to 3
set id score "&7Connectés: &b%amount of players%" in sidebar of player to 2 with id "players"
set score " " in sidebar of player to 1
set id score "&7Temps de jeu total: 00:00" in sidebar of player to 0 with id "time.%player's uuid%"
wait a second
while player is online:
if player isn't in world "Spawn":
side bar is set for player
wipe player's sidebar
if player's balance isn't {balance::%player's uuid%}:
edit score id "balance.%player's uuid%" to "&7NexusCoins: &b%balance of player%" and 5
set {balance::%player's uuid%} to player's balance
if {totaltime::%player's uuid%::seconds} is 59:
set {totaltime::%player's uuid%::seconds} to 0
add 1 to {totaltime::%player's uuid%::hours}
add 1 to {totaltime::%player's uuid%::seconds}
if {totaltime::%player's uuid%::seconds} is smaller than 10:
set {_s} to "0%{totaltime::%player's uuid%::seconds}%"
else:
set {_s} to "%{totaltime::%player's uuid%::seconds}%"
if {totaltime::%player's uuid%::hours} is smaller than 10:
set {_h} to "0%{totaltime::%player's uuid%::hours}%"
else:
set {_h} to "%{totaltime::%player's uuid%::hours}%"
edit score id "time.%player's uuid%" to "&7Temps de jeu total: %{_h}%:%{_s}%" and 0
wait a second
on leftclick:
add 1 to {click.%player's uuid%}
edit score id "clicks.%player's uuid%" to "&7Clicks: &b%{click.%player's uuid%}%" and 4
on join:
edit score id "players" to "&7Connectés: &b%amount of players%" and 2
on quit:
clear {totaltime::%player's uuid%::seconds}
clear {totaltime::%player's uuid%::hours}
delete score id "balance.%player's uuid%"
delete score id "clicks.%player's uuid%"
delete score id "time.%player's uuid%"
Voilà :p j'avais juste oublier quelque chose :D oublie pas de mettre en résolu si c'est bon