Aller au contenu
  • 0

TabList avec le haut qui change


Question

Posté(e)

Yop! J'essaye de faire une tablist jolie, mais elle marche pas... :

options:
   tabHeader: "%{message.tablist}%"
   tabFooter: "&7&oEn ligne: &d%amount of players%&7/&5%max players%"
   refreshLog: "[TabList] Raffraichissement des tabLists terminé avec succès."
   refreshNotif: "&7[&b&lTabList&r&7] &bRaffraichissement des tabLists terminé avec succès."

on Skript Start:
   execute console command "tablist refresh"

on Join:
   execute console command "tablist refresh"

on Quit:
   execute console command "tablist refresh"

command /tablist refresh:
   executable by: console and players
   trigger:
       loop all players:
           set tab header to {@tabHeader} and footer to {@tabFooter} for loop-player
           wait 1 tick
       log {@refreshLog}
       if command sender is not console:
           message {@refreshNotif} to the command sender
every second:
   if {temps.tablist} is not set:
       set {temps.tablist} to 0
   if {temps.tablist} is 0:
       delete {message.tablist}
       set {message.tablist} to &9&lHard'MC
       add 1 to {temps.tablist}
   if {temps.tablist} is 1:
       delete {message.tablist}
       set {message.tablist} to &3&lHard'MC
       add 1 to {temps.tablist}
   if {temps.tablist} is 2:
       delete {message.tablist}
       set {message.tablist} to &b&lHard'MC
       add 1 to {temps.tablist}
   if {temps.tablist} is 3:
       delete {message.tablist}
       set {message.tablist} to &3Hard'MC
       add 1 to {temps.tablist}
   if {temps.tablist} is 4:
       delete {temps.tablist}

 

Erreur: 1455629610-capture13.png

 

 

Merci de votre aide :)

 

Cordialement Dragonn

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Voila ^_^ Il fallait juste mettre des guillemets à certains endroit :P

 

[spoiler=CODE mdr]

options:
   tabHeader: %{message.tablist}%
   tabFooter: %&7&oEn ligne: &d%amount of players%&7/&5%max players%%
   refreshLog: "&7[&b&lTabList&r&7] &bRaffraichissement des tabLists terminé avec succès."
   refreshNotif: "&7[&b&lTabList&r&7] &bRaffraichissement des tabLists terminé avec succès."

on Skript Start:
   execute console command "tablist refresh"

on Join:
   execute console command "tablist refresh"

on Quit:
   execute console command "tablist refresh"

command /tablist refresh:
   executable by: console and players
   trigger:
       loop all players:
           set tab header to {@tabHeader} and footer to {@tabFooter} for loop-player
           wait 1 tick
       log {@refreshLog}
       if command sender is not console:
           message {@refreshNotif} to the command sender
every second:
   if {temps.tablist} is not set:
       set {temps.tablist} to 0
   if {temps.tablist} is 0:
       delete {message.tablist}
       set {message.tablist} to "&9&lHard'MC"
       add 1 to {temps.tablist}
   if {temps.tablist} is 1:
       delete {message.tablist}
       set {message.tablist} to "&3&lHard'MC"
       add 1 to {temps.tablist}
   if {temps.tablist} is 2:
       delete {message.tablist}
       set {message.tablist} to "&b&lHard'MC"
       add 1 to {temps.tablist}
   if {temps.tablist} is 3:
       delete {message.tablist}
       set {message.tablist} to "&3Hard'MC"
       add 1 to {temps.tablist}
   if {temps.tablist} is 4:
       delete {temps.tablist}

 

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.