Bonsoir,
Voici le code:
Détails: Le ping et le nombre de connecté s'actualise toute les 10 secondes, tu modifies comme tu veux.
Information: Il te faut la version SKRayFall 1.7.4 : https://dev.bukkit.org/projects/skrayfall/files/907996
Version de Skript: 2.2 que tu peux trouver ici: http://www.mediafire.com/file/24y9uwg8nwj551x/skript2.2.jar
Ensuite, tu dois supprimer ta commande /scoreboard dans ton Stat.sk et supprimer s'il te plaît ton every 3 seconds , make player execute command /scoreboard.
on join:
wait 3 seconds
make player execute command "/scoreboard"
function titleAnim(p: player):
wait 10 seconds
if {_p} is online:
edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3
edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2
else:
stop
wait 10 seconds
if {_p} is online:
edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3
edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2
else:
stop
wait 1 tick
if {_p} is online:
titleAnim({_p})
else:
stop
command /scoreboard:
trigger:
if player is in world "world":
if {sb.%player%} is not set:
set {sb.%player%} to 1
set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<"
set score "&f&m----------------------------" in sidebar of player to 4
set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%"
set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%"
set score "&f&m----------------------------" in sidebar of player to 1
set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0
titleAnim(player)
else:
wipe player's sidebar
wait 1 tick
clear {sb.%player%}
set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<"
set score "&f&m----------------------------" in sidebar of player to 4
set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%"
set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%"
set score "&f&m----------------------------" in sidebar of player to 1
set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0
titleAnim(player)
Information: Si tu changes quelques choses (à l'endroit du ping ou du online) tu dois aussi modifier dans la function.
Si tu as des questions, n'hésite pas :)
Cordialement, Acenox