Aller au contenu
  • 0

Script ne marche pas


Question

Posté(e)

Bonjour, j'aimerais être aider sur mon script qu'il ne fonctionne pas.

 

Voici les erreurs quand je reload le script:

[spoiler=Erreurs]

[13:09:44] [Client thread/INFO]: [CHAT] [skript] Reloading all scripts...

[13:09:44] [Client thread/INFO]: [CHAT] indentation error: expected 1 tab, but found 2 tabs (TPSCHECK.sk, line 26: make player execute command: "/lag verification"')

[13:09:44] [Client thread/INFO]: [CHAT] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TPSCHECK.sk, line 67: difference between {command.%player%.lastuse} and now is smaller than a minute:')

[13:09:44] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 69: message "&8[&cLag&8] &7L'auto vérification est déjà activée"')

[13:09:44] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 71: message "&8[&cLag&8] &7L'auto vérification activée, elle s'effectuera toutes les cinq minutes."')

[13:09:44] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 72: wait 2 seconds')

[13:09:44] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 73: execute console command "manuaddp %player% lag.check"')

[13:09:44] [Client thread/INFO]: [CHAT] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TPSCHECK.sk, line 75: difference between {command.%player%.lastuse} and now is smaller than a minute:')

[13:09:44] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 77: message "&8[&cLag&8] &7L'auto vérification est déjà désactiver"')

[13:09:44] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 79: message "&8[&cLag&8] &7L'auto vérification est désactivée"')

[13:09:44] [Client thread/INFO]: [CHAT] 'permission "lag.check"' is not an item type (TPSCHECK.sk, line 25: player has permission "lag.check"')

[13:09:44] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 95: if {_tps} is between 0 and 9,99:')

[13:09:44] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 97: if {_tps} is between 10 and 13,99:')

[13:09:44] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 99: if {_tps} is between 14 and 17,99:')

[13:09:44] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 119: if {_tps} is between 0 and 9,99:')

[13:09:44] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 121: if {_tps} is between 10 and 13,99:')

[13:09:44] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 123: if {_tps} is between 14 and 17,99:')

[13:09:44] [Client thread/INFO]: [CHAT] Loaded 1 script with a total of 2 triggers and 2 commands in 0.28 seconds

[13:09:44] [Client thread/INFO]: [CHAT] [skript] Encountered 8 errors while reloading all scripts!

 

 

16 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Tu peux mettre l'erreur en code ? (Insérer -> code).

[spoiler=Erreurs]

[22:43:30] [Client thread/INFO]: [CHAT] [skript] Reloading all scripts...
[22:43:31] [Client thread/INFO]: [CHAT] indentation error: expected 1 tab, but found 2 tabs (TPSCHECK.sk, line 26: make player execute command: "/lag verification"')
[22:43:31] [Client thread/INFO]: [CHAT] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TPSCHECK.sk, line 67: difference between {command.%player%.lastuse} and now is smaller than a minute:')
[22:43:31] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 69: message "&8[&cLag&8] &7L'auto vérification est déjà activée"')
[22:43:31] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 71: message "&8[&cLag&8] &7L'auto vérification activée, elle s'effectuera toutes les cinq minutes."')
[22:43:31] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 72: wait 2 seconds')
[22:43:31] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 73: execute console command "manuaddp %player% lag.check"')
[22:43:31] [Client thread/INFO]: [CHAT] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TPSCHECK.sk, line 75: difference between {command.%player%.lastuse} and now is smaller than a minute:')
[22:43:31] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 77: message "&8[&cLag&8] &7L'auto vérification est déjà désactiver"')
[22:43:31] [Client thread/INFO]: [CHAT] indentation error: expected 3 tabs, but found 4 tabs (TPSCHECK.sk, line 79: message "&8[&cLag&8] &7L'auto vérification est désactivée"')
[22:43:31] [Client thread/INFO]: [CHAT] 'permission "lag.check"' is not an item type (TPSCHECK.sk, line 25: player has permission "lag.check"')
[22:43:31] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 95: if {_tps} is between 0 and 9,99:')
[22:43:31] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 97: if {_tps} is between 10 and 13,99:')
[22:43:31] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 99: if {_tps} is between 14 and 17,99:')
[22:43:31] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 119: if {_tps} is between 0 and 9,99:')
[22:43:31] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 121: if {_tps} is between 10 and 13,99:')
[22:43:31] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 123: if {_tps} is between 14 and 17,99:')
[22:43:32] [Client thread/INFO]: [CHAT] Loaded 1 script with a total of 2 triggers and 2 commands in 0.81 seconds
[22:43:32] [Client thread/INFO]: [CHAT] [skript] Encountered 8 errors while reloading all scripts!

 

 

Et tu n'as pas modifié le script ? (Il manque " : " à la fin de la ligne)

Si j'ai modifier le script et à quel ligne il manque " : "

  • 0
Posté(e)
Pour résumer :

 

indentation error : Des tab oublié ou tu as mis des espaces,

Empty configuration n'a aucun impact

 

Enleve déja ces erreurs

Ok je vais voir demain la je n'ai pas le temps merci de ton aide :)

 

Ca ne marche pas :( voici le script (j'ai modifier les erreurs que @Arwex m'a dit) :

 

[spoiler=Script]

#---------------------------------
#----------- TPS CHECK -----------
#-------- PAR MRCRAZYKILL --------
#---------- VERSION 1.0 ---------
#---------------------------------

options:
   version: 1.0

on join:
   set {_tps} to tps
   message "&8&m-----------------------------------------------------"
   if {_tps} is between 0 and 9,99:
       message "&7Le serveur est : &cinstable"
   if {_tps} is between 10 and 13,99:
       message "&7Le serveur est : &6peu stable"
   if {_tps} is between 14 and 17,99:
       message "&7Le serveur est : &estable"
   if {_tps} is between 18 and 20:
       message "&7Le serveur est : &afluide"
   message "&7TPS = &a%{_tps}%"
   message "&8&m-----------------------------------------------------"

every 5 minutes:
   player has permission "lag.check"
   make player execute command: "/lag verification"
   set {_tps} to tps
   set {_freememory} to free memory
   set {_maxmemory} to max memory
   set {_usememory} to ({_maxmemory} - {_freememory})
   set {_maxmemory} to {_maxmemory}/1048576
   set {_freememory} to {_freememory}/1048576
   set {_usememory} to {_usememory}/1048576
   set {_maxplayer} to max players
   wait 1 tick
   if {_tps} is between 0 and 14:
       broadcast "&4➤ &cLe serveur est instable -> TPS = &r%{_tps}%"
       create file "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "Rapport de stabilité du serveur - %now%" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "-----------------------------------------------" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "TPS : %{_tps}%" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "Mémoire libre : %{_freememory}% MB" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "Mémoire maximum : %{_maxmemory}% MB" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "Mémoire utilisée : %{_usememory}% MB" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "Nombre de joueurs connectés : %number of players% / %{_maxplayer}%" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       wf "" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       if {_tps} is between 0 and 10:
           wf "État : instable" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       if {_tps} is between 11 and 14:
           wf "État : peu stable" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       if {_tps} is between 15 and 18:
           wf "État : stable" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       if {_tps} is between 19 and 20:
           wf "État : fluide" to "plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       log "Un rapport a ete creer | Location : plugins/TPSCHECK/TPS/year_%year%/month_%month%/day_%day%/hour_%hour%/minute_%minute%/rapport.txt"
       delete {_freememory}
       delete {_maxmemory}
       delete {_usememory}
       delete {_maxplayer}

command /check [<text>]:
   trigger:
       if argument 1 is "on":
           difference between {command.%player%.lastuse} and now is smaller than a minute:
           player don't have permission "lag.check"
           message "&8[&cLag&8] &7L'auto vérification activée, elle s'effectuera toutes les cinq minutes."
           wait 10 tick
           execute console command "manuaddp %player% lag.check"
           player has permission "lag.check"
           message "&8[&cLag&8] &7L'auto vérification est déjà activée"
       if argument 1 is "off":
           difference between {command.%player%.lastuse} and now is smaller than a minute:
           player don't have permission "lag.check"
           message "&8[&cLag&8] &7L'auto vérification est déjà désactiver"
           player has permission "lag.check"
           message "&8[&cLag&8] &7L'auto vérification est désactivée"
           wait 10 tick
           execute console command "manudelp %player% lag.check"

       if argument 1 is "verification":
           set {ping.%player%} to player's ping
           set {_tps} to tps
           if sender is player:
               if {ping.%player%} is between 0 and 199:
                   message "&9Votre ping : &a%{ping.%player%}% ms"
               if {ping.%player%} is between 200 and 499:
                   message "&9Votre ping : &6%{ping.%player%}% ms"
               if {ping.%player%} is between 500 and 999:
                   message "&9Votre ping : &c%{ping.%player%}% ms"
               if {ping.%player%} is greater than or equal to 1000:
                   message "&9Votre ping : &4%{ping.%player%}% ms"
           if {_tps} is between 0 and 9,99:
               message "&9TPS : &4%{_tps}%"
           if {_tps} is between 10 and 13,99:
               message "&9TPS : &c%{_tps}%"
           if {_tps} is between 14 and 17,99:
               message "&9TPS : &6%{_tps}%"
           if {_tps} is greater than or equal to 18:
               message "&9TPS : &a%{_tps}%"

command /lag:
   trigger:
       set {ping.%player%} to player's ping
       set {_tps} to tps
       message "&e&m-----------------------------------------------------"
       if sender is player:
           if {ping.%player%} is between 0 and 199:
               message "&9Votre ping : &a%{ping.%player%}% ms"
           if {ping.%player%} is between 200 and 499:
               message "&9Votre ping : &6%{ping.%player%}% ms"
           if {ping.%player%} is between 500 and 999:
               message "&9Votre ping : &c%{ping.%player%}% ms"
           if {ping.%player%} is greater than or equal to 1000:
               message "&9Votre ping : &4%{ping.%player%}% ms"
               message "&7Le ping indique le temps de réponse avec le serveur"
       if {_tps} is between 0 and 9,99:
           message "&9TPS : &4%{_tps}%"
       if {_tps} is between 10 and 13,99:
           message "&9TPS : &c%{_tps}%"
       if {_tps} is between 14 and 17,99:
           message "&9TPS : &6%{_tps}%"
       if {_tps} is greater than or equal to 18:
           message "&9TPS : &a%{_tps}%"
       message "&7Les TPS indiquent si le serveur est surchargé, &a20 = &bparfait"
       message "&e%now%"
       message "&e&m-----------------------------------------------------"

 

 

 

Et voici les erreurs que ça m'affiche maintenant :

[spoiler=Erreur]

[18:23:38] [Client thread/INFO]: [CHAT] [skript] Reloading TPSCHECK.sk...
[18:23:38] [Client thread/INFO]: [CHAT] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TPSCHECK.sk, line 64: difference between {command.%player%.lastuse} and now is smaller than a minute:')
[18:23:38] [Client thread/INFO]: [CHAT] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TPSCHECK.sk, line 72: difference between {command.%player%.lastuse} and now is smaller than a minute:')
[18:23:38] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 13: if {_tps} is between 0 and 9,99:')
[18:23:38] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 15: if {_tps} is between 10 and 13,99:')
[18:23:38] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 17: if {_tps} is between 14 and 17,99:')
[18:23:38] [Client thread/INFO]: [CHAT] 'permission "lag.check"' is not an item type (TPSCHECK.sk, line 25: player has permission "lag.check"')
[18:23:38] [Client thread/INFO]: [CHAT] 'command: "/lag verification"' is not a text (TPSCHECK.sk, line 26: make player execute command: "/lag verification"')
[18:23:38] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 92: if {_tps} is between 0 and 9,99:')
[18:23:39] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 94: if {_tps} is between 10 and 13,99:')
[18:23:39] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 96: if {_tps} is between 14 and 17,99:')
[18:23:39] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 116: if {_tps} is between 0 and 9,99:')
[18:23:39] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 118: if {_tps} is between 10 and 13,99:')
[18:23:39] [Client thread/INFO]: [CHAT] List is missing 'and' or 'or', defaulting to 'and' (TPSCHECK.sk, line 120: if {_tps} is between 14 and 17,99:')
[18:23:39] [Client thread/INFO]: [CHAT] [skript] Encountered 2 errors while reloading TPSCHECK.sk!

 

 

 

Ce qui ne marche pas et le "/check on" et "/check off" même quand j'ai la permission ou pas cela ne marche pas... Puis le /check verification toutes les 5 minutes (les 2 lignes après every 5 minutes: )

  • 0
Posté(e)

Les Anglo-saxons écrivent les nombre décimaux avec des points et pas des virgules. Skript étant un plugin international, tu peux pas mettre de virgule à un nombre, seulement un point.

17,99 --> 17.99
9,99 --> 9.99
13,99 --> 13.99

  • J'aime 1
  • 0
Posté(e)

Alors j'ai fais quelque modif il y a juste 1 chose qui ne marche pas c'est la commande que ça doit faire automatique toutes les 5 minutes (ligne 25)

Voici l'erreur:

'permission "lag.check"' is not an item type (LAG.sk, line 25: if player has permission "lag.check":')

Et voici les 3 lignes de script:

 

every 5 minutes:
   if player has permission "lag.check":
       make player execute command: "/check verification":

  • 0
Posté(e)
La dernière instruction est faussée parce que tu as mis deux points ":" à la fin. Réessaye après avoir modifié.

 

J'ai enlever mais rien ne change il y a toujours la même erreur:

'permission "lag.check"' is not an item type (LAG.sk, line 25: if player has permission "lag.check":')

  • 0
Posté(e)
Il n'y a pas de joueur dans un événement périodique (every X minutes), donc tu peux pas demander à Skript si le joueur a une permission, puisqu'il n'y en a pas.

Donc on ne peut rien faire ?

  • 0
Posté(e)
Donc on ne peut rien faire ?

 

Si, mais ça dépend ce que tu veux faire. Si tu veux tester la permission pour tous les joueurs, tu ajoutes une recherche de tous les joueurs ( loop all players: ) et tu remplaces player par loop-player et comme ça, le code s'exécute une fois pour chaque joueur connecté.

every 5 minutes:
  loop all players:
      if loop-player has permission "Je.Sais.Plus.Quoi":
          ...

  • 0
Posté(e)
Si, mais ça dépend ce que tu veux faire. Si tu veux tester la permission pour tous les joueurs, tu ajoutes une recherche de tous les joueurs ( loop all players: ) et tu remplaces player par loop-player et comme ça, le code s'exécute une fois pour chaque joueur connecté.

every 5 minutes:
  loop all players:
      if loop-player has permission "Je.Sais.Plus.Quoi":
          ...

Merci tout fonctionne

Mais j'ai rajouter une commande d'aide: /check <sans argument après> ça marche mais quand je fait /check on et /check off ça me met le message de la commande /check

Mais quand je fait /check verification ça ne me met pas le message de /check .

Ce que je veut est que quand on fait les commandes "/check on" et "/check off" ça nous affiche pas le message d'aide (/check)

 

Quand je fais /check on:

[ATTACH=full]3826[/ATTACH]

 

Quand je fait /check verification:

[ATTACH=full]3828[/ATTACH]

  • 0
Posté(e)
Il faudrait que tu envoie ton code pour que l'on puisse t'aider.

[spoiler=Script]

command /check [<text>]:
   trigger:
       if argument 1 is "on":
           if player has permission "lag.check":
               message "&8[&cLag&8] &7L'auto vérification est déjà activée"
           if player don't have permission "lag.check":
               message "&8[&cLag&8] &7L'auto vérification est activée"
               execute console command "manuaddp %player% lag.check"
       if argument 1 is "off":
           if player don't have permission "lag.check":
               message "&8[&cLag&8] &7L'auto vérification est déjà désactiver"
           if player has permission "lag.check":
               message "&8[&cLag&8] &7L'auto vérification est désactivée"
               execute console command "manudelp %player% lag.check"
       if argument 1 is "verification":
           set {ping.%player%} to player's ping
           set {_tps} to tps
           if sender is player:
               if {ping.%player%} is between 0 and 199:
                   message "&9Votre ping : &a%{ping.%player%}% ms"
               if {ping.%player%} is between 200 and 499:
                   message "&9Votre ping : &6%{ping.%player%}% ms"
               if {ping.%player%} is between 500 and 999:
                   message "&9Votre ping : &c%{ping.%player%}% ms"
               if {ping.%player%} is greater than or equal to 1000:
                   message "&9Votre ping : &4%{ping.%player%}% ms"
           if {_tps} is between 0 and 9,99:
               message "&9TPS : &4%{_tps}%"
           if {_tps} is between 10 and 13,99:
               message "&9TPS : &c%{_tps}%"
           if {_tps} is between 14 and 17,99:
               message "&9TPS : &6%{_tps}%"
           if {_tps} is greater than or equal to 18:
               message "&9TPS : &a%{_tps}%"
       else:
           message "&e&m-----------------------------------------------------"
           message "&7Si vous souhaitez faire une vérification de ping et du TPS du serveur:"
           message "&a➤ Utilise /check on pour activer la vérification."
           message "&c➤ Utilise /check off pour désactiver la vérification."
           message "&7Cette vérification est faite toute les 5 minutes."
           message "&e&m-----------------------------------------------------"

 

 

Voilà :)

  • 0
Posté(e)
command /check [<text>]:
 trigger:
 if argument 1 is "on":
 if player has permission "lag.check":
 message "&8[&cLag&8] &7L'auto vérification est déjà activée"
 if player don't have permission "lag.check":
 message "&8[&cLag&8] &7L'auto vérification est activée"
 execute console command "manuaddp %player% lag.check"
 else if argument 1 is "off":
 if player don't have permission "lag.check":
 message "&8[&cLag&8] &7L'auto vérification est déjà désactiver"
 if player has permission "lag.check":
 message "&8[&cLag&8] &7L'auto vérification est désactivée"
 execute console command "manudelp %player% lag.check"
 else if argument 1 is "verification":
 set {ping.%player%} to player's ping
 set {_tps} to tps
 if sender is player:
 if {ping.%player%} is between 0 and 199:
 message "&9Votre ping : &a%{ping.%player%}% ms"
 if {ping.%player%} is between 200 and 499:
 message "&9Votre ping : &6%{ping.%player%}% ms"
 if {ping.%player%} is between 500 and 999:
 message "&9Votre ping : &c%{ping.%player%}% ms"
 if {ping.%player%} is greater than or equal to 1000:
 message "&9Votre ping : &4%{ping.%player%}% ms"
 if {_tps} is between 0 and 9,99:
 message "&9TPS : &4%{_tps}%"
 if {_tps} is between 10 and 13,99:
 message "&9TPS : &c%{_tps}%"
 if {_tps} is between 14 and 17,99:
 message "&9TPS : &6%{_tps}%"
 if {_tps} is greater than or equal to 18:
 message "&9TPS : &a%{_tps}%"
 else:
 message "&e&m-----------------------------------------------------"
 message "&7Si vous souhaitez faire une vérification de ping et du TPS du serveur:"
 message "&a➤ Utilise /check on pour activer la vérification."
 message "&c➤ Utilise /check off pour désactiver la vérification."
 message "&7Cette vérification est faite toute les 5 minutes."
 message "&e&m-----------------------------------------------------"

Voilà corrigé. Ton erreur venait du fait que ton else s'appliquait seulement à la condition "if arg 1 is "verification":" donc quand tu faisait la commande /check on l'argument 1 n'était pas "verification" et donc cela affichait ton message. J'espère avoir été assez clair

 

PS: Désolé pour les tabs mais remets les c'est pas compliqués ;)

Merci ! Ça fonctionne ! MERCI à vous tous !

×
×
  • 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.