Tu stockes ton décompte dans une variable quand le joueur se déconnecte et ensuite quand le joueur se reconnecte tu set ta variable ou est stocké le décompte à la variable {time.%uuid of player%} comme ci-dessous ! (met un j'aime si je t'ai aidé !)
on first join:
set {first.join.%uuid of player%} to true
set {time.%uuid of player%} to 300
while {time.%uuid of player%} is more than 0:
{time.%uuid of player%} is more than 0:
set action bar of player to "&fTu commences ton aventure dans: &b%{time.%uuid of player%}% &fsecondes"
remove 1 from {time.%uuid of player%}
wait 1 seconds
if {time.%uuid of player%} = 0
teleport the player to {spawn1}
send "C'est terminé !"
clear {first.join.%uuid of player%}
on quit:
set {time.stock.%uuid of player%} to {time.%uuid of player%}
set {first.join.%uuid of player%} to false
on join:
if {first.join.%uuid of player%} is set:
if set {first.join.%uuid of player%} is false:
set {time.%uuid of player%} to {time.stock.%uuid of player%}
while {time.%uuid of player%} is more than 0:
{time.%uuid of player%} is more than 0:
set action bar of player to "&fTu commences ton aventure dans: &b%{time.%uuid of player%}% &fsecondes"
remove 1 from {time.%uuid of player%}
wait 1 seconds
if {time.%uuid of player%} = 0
teleport the player to {spawn1}
send "C'est terminé !"
clear {first.join.%uuid of player%}