Aller au contenu
  • 0

Ma commande ne s'éxécute pas


Question

Posté(e)

la commande /sg join ne fonctione pas merci de m'aider au plus vite:

 

Le skript

on break:
   if {sg.event.%player%} is true:
       send "[&6SurvivalGames&4] Tu ne peux pas build en SurvivalGames"
       cancel event
on build:
   if {sg.event.%player%} is true:
       send "[&6SurvivalGames&4] Tu ne peux pas build en SurvivalGames"
       cancel event
on quit:
       set {sg.event.%player%} to false
       set {sg.join.%player%} to false
       remove player from {sg.ingame::*}


variables:
   {sg.join.%player%} = false
   {sg.event.%player%} = false
   {sg.player.in} = 0
   {join.global} = true
   {sg.ingame.%player%} = true
on death:
   if {sg.event.%player%} is true:
       set death message to "&4[&6SurvivalGames&4] &5 %attacker% a tué %victim%"
       set {sg.event.%player%} to false
       set {sg.join.%player%} to false
       remove player from {sg.ingame::*}
command /sg [<text>] [<text>] [<text>]:
   trigger:
       if arg 1 is not set:
           if arg 2 is not set:
               if arg 3 is not set:
                   send "&4-----[&6SurvivalGames&4]-----" to player
                   send "&6 /sg join : Rejoindre la partie" to player
                   send "&6 /sg leave : Quitter la partie" to player
                   send "&6 /sg help : Rejoindre la partie" to player
                   send "<red><italic> plugin by vaspette" to player
       if arg 1 is "help":
           send "&4-----[&6SurvivalGames&4]-----" to player
           send "&6 /sg join : Rejoindre la partie" to player
           send "&6 /sg leave : Quitter la partie" to player
           send "&6 /sg help : Rejoindre la partie" to player
           send "<red><italic> plugin by vaspette" to player
       if arg 1 is "join":
           if {sg.ingame.%player%} is false:
               if {sg.player.in} is 10:
                   send "&4[&6SurvivalGames&4] Partie complète"
               else:
                   if {sg.join.%player%} is false:
                       if {join.global} is true:
                           set {sg.event.%player%} to true
                           set {sg.join.%player%} to true
                           send "&4[&6SurvivalGames&4] &5tu as rejoint {sg.player.in} /10 " to player
                           add 1 to {sg.player.in}
                           add player to {sg.ingame::*}
                           teleport player to {sg.wait}
                           if {sg.player.in} is 5:
                               send "&4La partie commece dans 20 secondes" to player
                               wait 10 seconds
                               send "&4La partie commence dans 10 secondes" to player
                               wait 5 seconds
                               send "&4La partie commence dans 5 secondes" to player
                               wait 5 seconds
                               send "&4LA PARTIE DEBUTE"
                               set {join.global} to false
                               loop {sg.ingame::*}:
                                   teleport loop-value to {sg.spawn.%loop-index%}
                       else:
                           send "&4La partie a déja commencé" to player
                   else:
                       send "&4[&6SurvivalGames&4] &5Tu as déja rejoint :( "












#congig spawn/waitroom

command /sgsetup <text> <text>:
   permission: sg.admin
   trigger:
       if arg 1 is "set":
           if arg 2 is "waitroom":
               set {sg.wait} to location of player
               send "&4tu as set la WT"
       if arg 1 is "set":
           if arg 2 is "1":
               set {sg.spawn.1} to location of player
               send "&4sg: Spawn 1 défini"
       if arg 1 is "set":
           if arg 2 is "2":
               set {sg.spawn.2} to location of player
               send "&4sg: Spawn 2 défini"
       if arg 1 is "set":
           if arg 2 is "1":
               set {sg.spawn.3} to location of player
               send "&4sg: Spawn 3 défini"
       if arg 1 is "set":
           if arg 2 is "1":
               set {sg.spawn.4} to location of player
               send "&4sg: Spawn 4 défini"
       if arg 1 is "set":
           if arg 2 is "5":
               set {sg.spawn.5} to location of player
               send "&4sg: Spawn 5 défini"
       if arg 1 is "set":
           if arg 2 is "6":
               set {sg.spawn.6} to location of player
               send "&4sg: Spawn 6 défini"
       if arg 1 is "set":
           if arg 2 is "7":
               set {sg.spawn.7} to location of player
               send "&4sg: Spawn 7 défini"
       if arg 1 is "set":
           if arg 2 is "8":
               set {sg.spawn.8} to location of player
               send "&4sg: Spawn 8 défini"
       if arg 1 is "set":
           if arg 2 is "9":
               set {sg.spawn.9} to location of player
               send "&4sg: Spawn 9 défini"
       if arg 1 is "set":
           if arg 2 is "10":
               set {sg.spawn.10} to location of player
               send "&4sg: Spawn 10 défini"

0 réponse à cette question

Messages recommandés

Il n’y a pas encore eu de réponse à cette question

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