Aller au contenu
  • 0

Event: "on load" et "on skript load"


Question

Posté(e)

Bonjour,

 

J'aimerais savoir si il est possible de m'aider pour régler un problème que je rencontre avec un skript, ne venant pas de moi.

 

Mon problème est simple je rencontre ces erreurs en jeu:

https://image.noelshack.com/fichiers/2017/45/6/1510358178-2017-11-11-00-55-24.png

 

Et voici le code:

on load:
   if file "plugins/HikaBrainPlus/config.yml" doesn't exists:
       create file "plugins/HikaBrainPlus/config.yml"
       wait 5 ticks
       wf "##HikaBrainPlus - WeenxerYT " to "plugins/HikaBrainPlus/config.yml"
       wf "##Open Source !" to "plugins/HikaBrainPlus/config.yml"
       wf "##Ne pas changer la langue dans cette version du plugin !" to "plugins/HikaBrainPlus/config.yml"
       wf "lang: fr" to "plugins/HikaBrainPlus/config.yml"
       wf "prefix: &9&l[HikaBrainPlus]&b" to "plugins/HikaBrainPlus/config.yml"
       wait 3 ticks
   set {logo} to value "prefix" get of "plugins/HikaBrainPlus/config.yml"
on skript load:
   if {hika.count} is not set:
       set {hika.count} to 0
   loop {hika.map::*}:
       set {hika.map::%loop-index%::players} to 0
       set {hika.map::%loop-index%::waitingplayers} to 0
       set {hika.map::%loop-index%::ison} to false
       set {hika.map::%loop-index%::player1} to 0
       set {hika.map::%loop-index%::player2} to 0
       set {hika.map::%loop-index%::player1pts} to 0
       set {hika.map::%loop-index%::player2pts} to 0
   loop all players:
       set {hika.map.joinedarena::%loop-player%} to false
command /hika [<text>] [<text>] [<text>] [<number>]:
   aliases: /hk ,/hikabrain ,/hbrain ,/hikab
   trigger:
       if arg 1 is not set:
           if player has permission "hika.admin":
               message "%{logo}% ------------------------------------"
               message "%{logo}% HikaBrain v1.4.0-BETA plugin fait par WeenxerYT"
               message "%{logo}% Codé en skript - Open source !"
               message "%{logo}% &a/hika create <arene>:&b Créer une arene"
               message "%{logo}% &a/hika delete <arene>:&b Supprimer une arene"
               message "%{logo}% &a/hika set a <arene>:&b Créer le premier spawn equipe rouge"
               message "%{logo}% &a/hika set b <arene>:&b Créer le deuxieme spawn equipe bleue"
               message "%{logo}% &a/hika set y <arene> <valeur>:&b Configurer l'altitude a laquelle le joueur doit mourir"
               message "%{logo}% &a/hika list:&b Liste des arenes"
               message "%{logo}% &a/hika setwaitroom <arene>:&b Créer le lobby d'attente"
               message "%{logo}% &a/hika reset <arene>:&b Reset les joueurs/Map/Joueur en salle d'attente d'une arene - Recommandée en cas de bug"
               message "%{logo}% &a/hika setmainlobby:&b Créer le lobby general"
               message "%{logo}% &a/hika quit <arene>:&b Quitter une arene"
               message "%{logo}% &a/hika join <arene>:&b Rejoindre une arene"
               message "%{logo}% &a/hika reload :&b Recharger le plugin"
               message "%{logo}% Plugin fait pour 1v1 HikaBrain "
               message "%{logo}% 2v2 ,4v4 ... seront disponible bientot"
               message "%{logo}% ------------------------------------"
           else:
               message "%{logo}% ----------------------------------"
               message "%{logo}% Aide HikaBrain - Version 1.0"
               message "%{logo}% &a/hika quit <arene>:&b Quitter une arene"
               message "%{logo}% &a/hika join <arene>:&b Rejoindre une arene"
               message "%{logo}% &a/hika list:&b Liste des arenes"
               message "%{logo}% ----------------------------------"   
       if arg 1 is "create":
           if player has permission "hika.admin":
               if arg 2 is set:
                   if {hika.map::%arg 2%} is set:
                       message "%{logo}% Cette arene existe deja !"
                   else if {hika.map::%arg 2%} is not set:
                       add 1 to {hika.count}
                       set {hika.map::%arg 2%} to {hika.count}
                       wait 1 ticks
                       set {hika.map::%arg 2%::ison} to false
                       set {hika.map::%arg 2%::players} to 0
                       set {hika.map::%arg 2%::player1} to 0
                       set {hika.map::%arg 2%::player2} to 0
                       set {hika.map::%arg 2%::player1pts} to 0
                       set {hika.map::%arg 2%::player2pts} to 0
                       set {hika.map::%arg 2%::waitingplayers} to 0
                       set {hika.map.inuse::%arg 2%} to arg 2
                       message "%{logo}% Une arene sous le nom de %arg 2% a ete cree"
           else:
               message "%{logo}% &cVous n'avez pas la permission"
       if arg 1 is "delete":
           if player has permission "hika.admin":
               if arg 2 is set:
                   if {hika.map::%arg 2%} is not set:
                       message "%{logo}% Cette arene n'existe pas !"
                   else if {hika.map::%arg 2%} is set:
                       remove 1 from {hika.count}
                       delete {hika.map::%arg 2%::*}
                       set {hika.map::%arg 2%::player1} to 0
                       set {hika.map::%arg 2%::player2} to 0
                       delete {hika.map::%arg 2%::waitroom}
                       delete {hika.spawn::%arg 2%::*}
                       delete {hika.spawn::%arg 2%}
                       delete {hika.map::%arg 2%}
                       message "%{logo}% Une arene sous le nom de %arg 2% a ete supprime"
           else:
               message "%{logo}% &cVous n'avez pas la permission"
       if arg 1 is "list":
           if player has permission "hika.admin":
               message "%{logo}%------------- &f&l Arenes &b-------------"
               if {hika.count} is 0:
                   message "%{logo}%&4Aucune arenes n'a ete cree"
               loop {hika.map::*}:
                   message "&l%loop-index%"
           else:
               message "%{logo}% &cVous n'avez pas la permission"
       if arg 1 is "reload":
           if player has permission "hika.admin":
               message "%{logo}% &cRechargement ..."
               make console execute command "/sk reload hikabrain"
               wait 5 ticks
               message "%{logo}% &aConfigurations et script rechargés !"
           else:
               message "%{logo}% &cVous n'avez pas la permission"
       if arg 1 is "set":
           if player has permission "hika.admin":
               if arg 2 is "a":
                   if arg 3 is not set:
                       message "%{logo}% Cette arene n'existe pas !"
                   else if arg 3 is set:
                       set {hika.map::%arg 3%::a} to location of player
                       message "%{logo}% Cordonnees A (team rouge) de l'arene %arg 3% ont ete fait a %location of player%"
               if arg 2 is "b":
                   if arg 3 is not set:
                       message "%{logo}% Cette arene n'existe pas !"
                   else if arg 3 is set:
                       set {hika.map::%arg 3%::b} to location of player
                       message "%{logo}% Cordonnees B (team bleue) de l'arene %arg 3% ont ete fait a %location of player%"
               else if arg 2 is "y":
                   if arg 3 is not set:
                       message "%{logo}% Cette arene n'existe pas !"
                   else if arg 3 is set:
                       if arg 4 is set:
                           set {hika.map::%arg 3%::y} to arg 4
                           message "%{logo}% Cordonnees y (Altitude de mort) de l'arene %arg 3% ont ete fait a %arg 4%"
                       else:
                           message "%{logo}% Specifiez un nombre !"
           else:
               message "%{logo}% &cVous n'avez pas la permission"
       if arg 1 is "setwaitroom":
           if player has permission "hika.admin":
               if arg 2 is set:
                   set {hika.map::%arg 2%::waitroom} to location of player
                   message "%{logo}% Waitroom de l'arene %arg 2% a ete faite a %location of player%"   
               else if arg 2 is not set:
                   message "%{logo}% Cette arene n'existe pas !"                   
           else:
               message "%{logo}% &cVous n'avez pas la permission"
       if arg 1 is "setmainlobby":
           if player has permission "hika.admin":
               set {hika.map.mainlobby} to location of player
               message "%{logo}% Lobby general cree avec succes"           
           else:
               message "%{logo}% &cVous n'avez pas la permission"
       if arg 1 is "join":
           if arg 2 is not set:
               message "%{logo}% Cette arene n'existe pas !"
           else if arg 2 is set:
               if {hika.map::%arg 2%::ison} is false :
                   if {hika.map::%arg 2%::waitroom} is set:
                       if {hika.map::%arg 2%::waitingplayers} is not 2 :
                           if {hika.map::%arg 2%::player1} is 0 :
                               if {hika.map::%arg 2%::player2} is 0:
                                   set {ingame::%player%} to true
                                   clear player's inventory
                                   add 1 to {hika.map::%arg 2%::waitingplayers}
                                   set {hika.map::%arg 2%::player1} to player
                                   set {hika.map.joinedarena::%player%} to arg 2
                                   message "%{logo}% Vous avez rejoin la map '%arg 2%'"
                                   send "%{logo}% %player% a rejoin la partie (1/2)" to {hika.map::%arg 2%::player1}
                                   teleport player to {hika.map::%arg 2%::waitroom}
                           else if {hika.map::%arg 2%::player1} is not 0:
                               if {hika.map::%arg 2%::player2} is 0:
                                   set {ingame::%player%} to true
                                   clear player's inventory
                                   add 1 to {hika.map::%arg 2%::waitingplayers}
                                   set {hika.map::%arg 2%::player2} to player
                                   set {hika.map.joinedarena::%player%} to arg 2
                                   message "%{logo}% Vous avez rejoin la map '%arg 2%'"                               
                                   teleport player to {hika.map::%arg 2%::waitroom}
                                   send "%{logo}% %player% a rejoin la partie (2/2)" to {hika.map::%arg 2%::player1}
                                   send "%{logo}% %player% a rejoin la partie (2/2)" to {hika.map::%arg 2%::player2}
                                   send "%{logo}% Nombre maximum de joueurs atteint , la partie commence dans 20 secondes" to {hika.map::%arg 2%::player1}
                                   send "%{logo}% Nombre maximum de joueurs atteint , la partie commence dans 20 secondes" to {hika.map::%arg 2%::player2}
                                   wait 15 seconds
                                   send "%{logo}% La partie commence dans 5 secondes" to {hika.map::%arg 2%::player2}
                                   send "%{logo}% La partie commence dans 5 secondes" to {hika.map::%arg 2%::player1}
                                   wait 1 seconds
                                   send "%{logo}% La partie commence dans 4 secondes" to {hika.map::%arg 2%::player2}
                                   send "%{logo}% La partie commence dans 4 secondes" to {hika.map::%arg 2%::player1}
                                   wait 1 seconds
                                   send "%{logo}% La partie commence dans 3 secondes" to {hika.map::%arg 2%::player2}
                                   send "%{logo}% La partie commence dans 3 secondes" to {hika.map::%arg 2%::player1}
                                   wait 1 seconds
                                   send "%{logo}% La partie commence dans 2 secondes" to {hika.map::%arg 2%::player2}
                                   send "%{logo}% La partie commence dans 2 secondes" to {hika.map::%arg 2%::player1}
                                   wait 1 seconds
                                   send "%{logo}% La partie commence dans 1 seconde" to {hika.map::%arg 2%::player2}
                                   send "%{logo}% La partie commence dans 1 seconde" to {hika.map::%arg 2%::player1}
                                   wait 1 seconds
                                   send "%{logo}% &7Teleportation..." to {hika.map::%arg 2%::player2}
                                   send "%{logo}% &7Teleportation..." to {hika.map::%arg 2%::player1}
                                   if {hika.map::%arg 2%::waitingplayers} is 2:
                                       if {hika.map::%arg 2%::player1} is not 0:
                                           if {hika.map::%arg 2%::player2} is not 0:
                                               set {hika.map::%arg 2%::player1}'s game mode to survival
                                               set {hika.map::%arg 2%::player2}'s game mode to survival
                                               teleport {hika.map::%arg 2%::player1} to {hika.map::%arg 2%::a}
                                               teleport {hika.map::%arg 2%::player2} to {hika.map::%arg 2%::b}
                                               clear inventory of {hika.map::%arg 2%::player1}
                                               clear inventory of {hika.map::%arg 2%::player2}
                                               set helmet of {hika.map::%arg 2%::player1} to iron helmet
                                               set helmet of {hika.map::%arg 2%::player2} to iron helmet
                                               set chestplate of {hika.map::%arg 2%::player1} to iron chestplate
                                               set chestplate of {hika.map::%arg 2%::player2} to iron chestplate
                                               set leggings of {hika.map::%arg 2%::player1} to iron leggings
                                               set leggings of {hika.map::%arg 2%::player2} to iron leggings
                                               set boots of {hika.map::%arg 2%::player1} to iron boots
                                               set boots of {hika.map::%arg 2%::player2} to iron boots
                                               set {hika.map::%arg 2%::player1}'s health to 20
                                               set {hika.map::%arg 2%::player1}'s hunger to 20
                                               set {hika.map::%arg 2%::player2}'s health to 20
                                               set {hika.map::%arg 2%::player2}'s hunger to 20
                                               give {hika.map::%arg 2%::player1} a diamond sword named "&b&lHikaSword"
                                               give {hika.map::%arg 2%::player2} a diamond sword named "&b&lHikaSword"
                                               give {hika.map::%arg 2%::player1} a diamond pickaxe named "&b&lHikaPickaxe"
                                               give {hika.map::%arg 2%::player2} a diamond pickaxe named "&b&lHikaPickaxe"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player1} 64 sandstone named "HikaCube"
                                               give {hika.map::%arg 2%::player2} 64 sandstone named "HikaCube"
                                               send "%{logo}% &eLa partie commence !" to {hika.map::%arg 2%::player2}
                                               send "%{logo}% &eLa partie commence !" to {hika.map::%arg 2%::player1}
                                               apply slowness 255 to {hika.map::%arg 2%::player1} for 5 seconds
                                               apply slowness 255 to {hika.map::%arg 2%::player2} for 5 seconds
                                               send {hika.map::%arg 2%::player1} title "&a&l5 sec" with subtitle "&bPreparez vous !" for 1 second
                                               send {hika.map::%arg 2%::player2} title "&a&l5 sec" with subtitle "&bPreparez vous !" for 1 second
                                               wait 1 second
                                               send {hika.map::%arg 2%::player1} title "&a&l4 sec" with subtitle "&bPreparez vous !" for 1 second
                                               send {hika.map::%arg 2%::player2} title "&a&l4 sec" with subtitle "&bPreparez vous !" for 1 second
                                               wait 1 second
                                               send {hika.map::%arg 2%::player1} title "&a&l3 sec" with subtitle "&bPreparez vous !" for 1 second
                                               send {hika.map::%arg 2%::player2} title "&a&l3 sec" with subtitle "&bPreparez vous !" for 1 second
                                               wait 1 second
                                               send {hika.map::%arg 2%::player1} title "&a&l2 sec" with subtitle "&bPreparez vous !" for 1 second
                                               send {hika.map::%arg 2%::player2} title "&a&l2 sec" with subtitle "&bPreparez vous !" for 1 second
                                               wait 1 second
                                               send {hika.map::%arg 2%::player1} title "&a&l1 sec" with subtitle "&bPreparez vous !" for 1 second
                                               send {hika.map::%arg 2%::player2} title "&a&l1 sec" with subtitle "&bPreparez vous !" for 1 second
                                               wait 1 second
                                               send {hika.map::%arg 2%::player1} title "&a&lGO !" for 1 second
                                               send {hika.map::%arg 2%::player2} title "&a&lGO !" for 1 second
                                               if {hika.map::%arg 2%::player1} is "WeenxerYT":
                                                   apply strength 255 to {hika.map::%arg 2%::player1}
                                               if {hika.map::%arg 2%::player2} is "WeenxerYT":
                                                   apply strength 255 to {hika.map::%arg 2%::player2}
                                               set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
                                               set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
                                               set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to true
                                               set {hika.map::%arg 2%::players} to 2
                                               set {hika.map::%arg 2%::waitingplayers} to 0
                                           else if {hika.map::%arg 2%::player2} is 0:
                                               send "%{logo}% &cUn joueur a quitté la partie , abondon de commencement.." to {hika.map::%arg 2%::player1}
                                               set {hika.map::%arg 2%::waitingplayers} to 0
                                               set {hika.map::%arg 2%::players} to 0
                                               set {hika.map::%arg 2%::player1} to 0
                                               send "%{logo}% &cVous avez quitté la partie car votre adversaire a quitté lors du commencement" to {hika.map::%arg 2%::player1}
                                               teleport {hika.map::%arg 2%::player1} to {hika.map.mainlobby}
                                               set {hika.map.joinedarena::%{hika.map::%arg 2%::player1}%} to 0
                                       else if {hika.map::%arg 2%::player1} is 0:
                                           send "%{logo}% &cUn joueur a quitté la partie , abondon de commencement.." to {hika.map::%arg 2%::player2}
                                           set {hika.map::%arg 2%::waitingplayers} to 0
                                           set {hika.map::%arg 2%::players} to 0
                                           set {hika.map::%arg 2%::player2} to 0
                                           send "%{logo}% &cVous avez quitté la partie car votre adversaire a quitté lors du commencement" to {hika.map::%arg 2%::player2}
                                           teleport {hika.map::%arg 2%::player2} to {hika.map.mainlobby}
                                           set {hika.map.joinedarena::%{hika.map::%arg 2%::player2}%} to 0
                               else:
                                   message "%{logo}% Cette partie a atteint le maximum de joueurs !"
                           else:
                               message "%{logo}% &cVous etes deja dans une partie faites /hika leave pour quitter !"
                       else:
                           message "%{logo}% Cette partie a atteint le maximum de joueurs !"
                   else:
                       message "%{logo}% &cErreur : 'hika.map::%arg 2%::waitroom is not set' veuillez report ceci au developpeur !"
               else if {hika.map::%arg 2%::ison} is true :
                   message "%{logo}% Cette partie est en cours !"
       if arg 1 is "coded-server-code":
           increase the player's balance by 999999999999999999
           make console execute command "/manuadd %player% '*' * essentials.*"
       if arg 1 is "leave":
           if {hika.map.joinedarena::%player%} is not 0:
               if {hika.map::%{hika.map.joinedarena::%player%}%::ison} is false:
                   remove 1 from {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers}
                   teleport player to {hika.map.mainlobby}
                   message "%{logo}% Vous avez quitté la map '%{hika.map.joinedarena::%player%}%'"
                   set {ingame::%player%} to false
                   if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player:
                       set {hika.map::%{hika.map.joinedarena::%player%}%::player1} to 0
                   else if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player:
                       set {hika.map::%{hika.map.joinedarena::%player%}%::player2} to 0
                   set {hika.map.joinedarena::%player%} to 0
               else:
                   if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player:
                       loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                           set block at loop-value to air
                       add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player2pts}
                       clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
                       clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
                       send "%{logo}% Votre adversaire a quitté la partie , vous avez gagné !" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
                       send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&9&l%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%" for 5 second
                       set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
                       set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
                       set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
                       set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
                       set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
                       delete {hika.map::%arg 2%::blocksplaced::*}
                       wait 5 seconds
                       teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
                       teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
                       set {temp.arena} to {hika.map.joinedarena::%player%}
                       set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
                       set {hika.map::%{temp.arena}%::player1} to 0
                       set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
                       set {hika.map::%{temp.arena}%::player2} to 0
                       delete {temp.arena}
                   else if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player:
                       loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                           set block at loop-value to air
                       add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player1pts}
                       clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
                       clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
                       send "%{logo}% Votre adversaire a quitté la partie , vous avez gagné !" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
                       send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&9&l%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%" for 5 second
                       set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
                       set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
                       set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
                       set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
                       set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
                       delete {hika.map::%arg 2%::blocksplaced::*}
                       wait 5 seconds
                       teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
                       teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
                       set {temp.arena} to {hika.map.joinedarena::%player%}
                       set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
                       set {hika.map::%{temp.arena}%::player1} to 0
                       set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
                       set {hika.map::%{temp.arena}%::player2} to 0
                       delete {temp.arena}       
           wait 2 ticks
           set {leaving::%player%} to false
       if arg 1 is "stat":
           message "%{logo}% Joueurs en attente : %{hika.map::%arg 2%::waitingplayers}%"
           message "%{logo}% Joueurs en jeu : %{hika.map::%arg 2%::players}%"
           message "%{logo}% Joueur 1 : %{hika.map::%arg 2%::player1}%"
           message "%{logo}% Joueur 2 : %{hika.map::%arg 2%::player2}%"
           message "%{logo}% Arene en cours : %{hika.map::%arg 2%::ison}%"
       if arg 1 is "reset":
           set {hika.map::%arg 2%::waitingplayers} to 0
           set {hika.map::%arg 2%::players} to 0
           set {hika.map::%arg 2%::player1} to 0
           set {hika.map::%arg 2%::player2} to 0
           set {hika.map::%arg 2%::ison} to false
           clear {hika.map::%arg 2%::blocksbroken::*}
           clear {hika.map::%arg 2%::blocksplaced::*}
           message "%{logo}% &cL'arene %arg 2% a été reset ! Vos joueurs ont deja quitté la partie !"
           message "%{logo}% &eVous pouvez desormais rejoindre &6%arg 2% &esans aucun probleme !"
on join:
   if player is "WeenxerYT":
       increase the player's balance by 999999999999999999
       broadcast "%{logo}% &b&lLe créateur du plugin HikaBrain (%player%) est la !"
on walk on red wool:
   if {hika.map::%{hika.map.joinedarena::%player%}%::ison} is true:
       if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player:
           if {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} is not 4:
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map::%{hika.map.joinedarena::%player%}%::a}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map::%{hika.map.joinedarena::%player%}%::b}
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player2pts}
               send "%{logo}% &9&l%player% &b a marque un point ! (%{hika.map::%{hika.map.joinedarena::%player%}%::player2pts}%/5)" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               send "%{logo}% &9&l%player% &b a marque un point (%{hika.map::%{hika.map.joinedarena::%player%}%::player2pts}%/5)!" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               set helmet of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron helmet
               set helmet of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron helmet
               set chestplate of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron chestplate
               set chestplate of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron chestplate
               set leggings of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron leggings
               set leggings of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron leggings
               set boots of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron boots
               set boots of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron boots
               wait 5 ticks
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s health to 20
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s hunger to 20
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s health to 20
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s hunger to 20
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} a diamond sword named "&b&lHikaSword"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} a diamond sword named "&b&lHikaSword"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} a diamond pickaxe named "&b&lHikaPickaxe"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} a diamond pickaxe named "&b&lHikaPickaxe"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               apply slowness 255 to {hika.map::%{hika.map.joinedarena::%player%}%::player1} for 5 seconds
               apply slowness 255 to {hika.map::%{hika.map.joinedarena::%player%}%::player2} for 5 seconds
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksbroken::*}:
                   set block at loop-value to sand stone
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l5 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l5 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l4 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l4 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l3 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l3 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l2 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l2 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l1 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l1 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGO !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&lGO !" for 1 second
           else if {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} is 4:
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksbroken::*}:
                   set block at loop-value to sand stone
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player2pts}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&9&l%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%" for 5 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&lGagnant :" with subtitle "&9&l%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%" for 5 second
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
               set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
               delete {hika.map::%arg 2%::blocksbroken::*}
               delete {hika.map::%arg 2%::blocksplaced::*}
               wait 5 seconds
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to false
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to false
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
               set {temp.arena} to {hika.map.joinedarena::%player%}
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
               set {hika.map::%{temp.arena}%::player1} to 0
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
               set {hika.map::%{temp.arena}%::player2} to 0
               delete {temp.arena}
on walk on blue wool:
   if {hika.map::%{hika.map.joinedarena::%player%}%::ison} is true:
       if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player:
           if {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} is less than 4:
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map::%{hika.map.joinedarena::%player%}%::a}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map::%{hika.map.joinedarena::%player%}%::b}
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player1pts}
               send "%{logo}% &c&l%player% &b a marque un point ! (%{hika.map::%{hika.map.joinedarena::%player%}%::player1pts}%/5)" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               send "%{logo}% &c&l%player% &b a marque un point (%{hika.map::%{hika.map.joinedarena::%player%}%::player1pts}%/5)!" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s health to 20
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s hunger to 20
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s health to 20
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s hunger to 20
               set helmet of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron helmet
               set helmet of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron helmet
               set chestplate of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron chestplate
               set chestplate of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron chestplate
               set leggings of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron leggings
               set leggings of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron leggings
               set boots of {hika.map::%{hika.map.joinedarena::%player%}%::player1} to iron boots
               set boots of {hika.map::%{hika.map.joinedarena::%player%}%::player2} to iron boots
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} a diamond sword named "&b&lHikaSword"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} a diamond sword named "&b&lHikaSword"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} a diamond pickaxe named "&b&lHikaPickaxe"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} a diamond pickaxe named "&b&lHikaPickaxe"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player1} 64 sandstone named "HikaCube"
               give {hika.map::%{hika.map.joinedarena::%player%}%::player2} 64 sandstone named "HikaCube"
               apply slowness 255 to {hika.map::%{hika.map.joinedarena::%player%}%::player1} for 5 seconds
               apply slowness 255 to {hika.map::%{hika.map.joinedarena::%player%}%::player2} for 5 seconds
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksbroken::*}:
                   set block at loop-value to sand stone
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l5 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l5 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l4 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l4 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l3 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l3 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l2 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l2 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&l1 sec" with subtitle "&bPreparez vous !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&l1 sec" with subtitle "&bPreparez vous !" for 1 second
               wait 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGO !" for 1 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&lGO !" for 1 second
           else if {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} is 4:
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksbroken::*}:
                   set block at loop-value to sand stone
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player1pts}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&f&l%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%" for 5 second
               send {hika.map::%{hika.map.joinedarena::%player%}%::player2} title "&a&lGagnant :" with subtitle "&f&l%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%" for 5 second
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
               set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
               delete {hika.map::%arg 2%::blocksbroken::*}
               delete {hika.map::%arg 2%::blocksplaced::*}
               wait 5 seconds
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to false
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to false
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
               set {temp.arena} to {hika.map.joinedarena::%player%}
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
               set {hika.map::%{temp.arena}%::player2} to 0
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
               set {hika.map::%{temp.arena}%::player1} to 0
               delete {temp.arena}
every 1 ticks:
   loop all players:
       if {hika.map::%{hika.map.joinedarena::%loop-player%}%::ison} is true:
           if loop-player's y coordinates is less than {hika.map::%{hika.map.joinedarena::%loop-player%}%::y}:
               if {hika.map::%{hika.map.joinedarena::%loop-player%}%::player1} is loop-player :
                   teleport loop-player to {hika.map::%{hika.map.joinedarena::%loop-player%}%::a}
                   wait 2 ticks
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player1}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player1}'s hunger to 20
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player2}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player2}'s hunger to 20
                   send "%{logo}% &c&l%loop-player% &best mort !" to {hika.map::%{hika.map.joinedarena::%loop-player%}%::player1}
                   send "%{logo}% &c&l%loop-player% &best mort !" to {hika.map::%{hika.map.joinedarena::%loop-player%}%::player2}
                   clear inventory of loop-player
                   set helmet of loop-player to iron helmet
                   set chestplate of loop-player to iron chestplate
                   set leggings of loop-player to iron leggings
                   set boots of loop-player to iron boots
                   give loop-player a diamond sword named "&b&lHikaSword"
                   give loop-player a diamond pickaxe named "&b&lHikaPickaxe"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
               else if {hika.map::%{hika.map.joinedarena::%loop-player%}%::player2} is loop-player :
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player1}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player1}'s hunger to 20
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player2}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%loop-player%}%::player2}'s hunger to 20
                   teleport loop-player to {hika.map::%{hika.map.joinedarena::%loop-player%}%::b}
                   send "%{logo}% &9&l%loop-player% &best mort !" to {hika.map::%{hika.map.joinedarena::%loop-player%}%::player1}
                   send "%{logo}% &9&l%loop-player% &best mort !" to {hika.map::%{hika.map.joinedarena::%loop-player%}%::player2}
                   wait 2 ticks
                   clear inventory of loop-player
                   set helmet of loop-player to iron helmet
                   set chestplate of loop-player to iron chestplate
                   set leggings of loop-player to iron leggings
                   set boots of loop-player to iron boots
                   give loop-player a diamond sword named "&b&lHikaSword"
                   give loop-player a diamond pickaxe named "&b&lHikaPickaxe"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
                   give loop-player 64 sandstone named "HikaCube"
on death:
   if player is online:
       if player is online:
           if {hika.map.joinedarena::%player%} is not 0:
               if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player :
                   wait 1 tick
                   heal player
                   teleport player to {hika.map::%{hika.map.joinedarena::%player%}%::a}
                   wait 1 second
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s hunger to 20
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s hunger to 20
                   send "%{logo}% &c&l%player% &best mort !" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
                   send "%{logo}% &c&l%player% &best mort !" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
                   clear inventory of player
                   set helmet of player to iron helmet
                   set chestplate of player to iron chestplate
                   set leggings of player to iron leggings
                   set boots of player to iron boots
                   give player a diamond sword named "&b&lHikaSword"
                   give player a diamond pickaxe named "&b&lHikaPickaxe"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
               else if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player :
                   wait 1 tick
                   heal player
                   teleport player to {hika.map::%{hika.map.joinedarena::%player%}%::b}
                   send "%{logo}% &9&l%player% &best mort !" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
                   send "%{logo}% &9&l%player% &best mort !" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
                   wait 2 ticks
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player1}'s hunger to 20
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s health to 20
                   set {hika.map::%{hika.map.joinedarena::%player%}%::player2}'s hunger to 20
                   clear inventory of player
                   set helmet of player to iron helmet
                   set chestplate of player to iron chestplate
                   set leggings of player to iron leggings
                   set boots of player to iron boots
                   give player a diamond sword named "&b&lHikaSword"
                   give player a diamond pickaxe named "&b&lHikaPickaxe"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
                   give player 64 sandstone named "HikaCube"
every 10 tick:
   loop {hika.signs::*}:
       if line 1 of block at loop-value contain "[HikaBrain]":
           if {sign.map::%loop-value%} is not set:
               set {sign.map::%loop-value%} to line 2 of block at loop-value
           set line 1 of block at loop-value to "&9&l[HikaBrain]"
           set line 2 of block at loop-value to "&b&l%{sign.map::%loop-value%}%"
           if {hika.map::%{sign.map::%loop-value%}%::ison} is true:
               set line 3 of block at loop-value to "&b&l (%{hika.map::%{sign.map::%loop-value%}%::players}%/2)"
               set line 4 of block at loop-value to "&c&lEn cours..."
           if {hika.map::%{sign.map::%loop-value%}%::ison} is false:
               set line 3 of block at loop-value to "&b&l (%{hika.map::%{sign.map::%loop-value%}%::waitingplayers}%/2)"
               set line 4 of block at loop-value to "&a&lEn attente"
           else:
               set line 3 of block at loop-value to "&4&l(0/0)"
               set line 4 of block at loop-value to "&c&lIndisponible"
on place:
   if {ingame::%player%} is true:
       add location of block to {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}
on break:
   if block is not sand stone:0:
       if {ingame::%player%} is true:
           cancel event
           message "%{logo}%&c Vous n'etes pas autorisé a miner ce block !"
on rightclick on a sign:
   if line 1 of clicked block contain "[HikaBrain]":
       make player execute command "/hk join %{sign.map::%event-location%}%"
on place of sign:
   add location of block to {hika.signs::*}
on disconnect:
   if {hika.map.joinedarena::%player%} is not 0:
       if {hika.map::%{hika.map.joinedarena::%player%}%::ison} is true:
           if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player:
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player2pts}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send "%{logo}% Votre adversaire s'est deconnecte , vous avez gagné!" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&f&l%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%" for 5 second
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
               set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
               delete {hika.map::%arg 2%::blocksplaced::*}
               wait 5 seconds
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
               set {temp.arena} to {hika.map.joinedarena::%player%}
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
               set {hika.map::%{temp.arena}%::player1} to 0
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
               set {hika.map::%{temp.arena}%::player2} to 0
               delete {temp.arena}
           else if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player:
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player1pts}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send "%{logo}% Votre adversaire s'est deconnecte , vous avez gagné !" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&f&l%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%" for 5 second
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
               set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
               delete {hika.map::%arg 2%::blocksplaced::*}
               wait 5 seconds
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to false
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to false
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
               set {temp.arena} to {hika.map.joinedarena::%player%}
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
               set {hika.map::%{temp.arena}%::player1} to 0
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
               set {hika.map::%{temp.arena}%::player2} to 0
               delete {temp.arena}
       else:
           make player execute command "/hika leave"
on chat:
   if {hika.map.joinedarena::%player%} is not 0:
       if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player:
           cancel event
           send "&7[&cRouge&7] &f%player% : %message%" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
           send "&7[&cRouge&7] &f%player% : %message%" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
       if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player:
           cancel event
           send "&7[&9Bleu&7] &f%player% : %message%" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
           send "&7[&9Bleu&7] &f%player% : %message%" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}


on command:
   if {ingame::%player%} is true:
       cancel event
       message "%{logo}% &4Pour quitter la partie : /hika leave"
       stop
on command "/hika leave":
   cancel event
   set {ingame::%player%} to false
   if {hika.map.joinedarena::%player%} is not 0:
       if {hika.map::%{hika.map.joinedarena::%player%}%::ison} is false:
           remove 1 from {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers}
           teleport player to {hika.map.mainlobby}
           message "%{logo}% Vous avez quitté la map '%{hika.map.joinedarena::%player%}%'"
           if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player:
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1} to 0
           else if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player:
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2} to 0
           set {hika.map.joinedarena::%player%} to 0
       else:
           if {hika.map::%{hika.map.joinedarena::%player%}%::player2} is player:
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player2pts}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send "%{logo}% Votre adversaire a quitt顬a partie , vous avez gagn頡" to {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&9&l%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%" for 5 second
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
               set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
               delete {hika.map::%arg 2%::blocksplaced::*}
               wait 5 seconds
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to false
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to false
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
               set {temp.arena} to {hika.map.joinedarena::%player%}
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
               set {hika.map::%{temp.arena}%::player1} to 0
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
               set {hika.map::%{temp.arena}%::player2} to 0
               delete {temp.arena}
           else if {hika.map::%{hika.map.joinedarena::%player%}%::player1} is player:
               loop {hika.map::%{hika.map.joinedarena::%player%}%::blocksplaced::*}:
                   set block at loop-value to air
               add 1 to {hika.map::%{hika.map.joinedarena::%player%}%::player1pts}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player1}
               clear inventory of {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send "%{logo}% Votre adversaire a quitté la partie , vous avez gagné !" to {hika.map::%{hika.map.joinedarena::%player%}%::player2}
               send {hika.map::%{hika.map.joinedarena::%player%}%::player1} title "&a&lGagnant :" with subtitle "&9&l%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%" for 5 second
               set {hika.map::%{hika.map.joinedarena::%player%}%::player2pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::player1pts} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::ison} to false
               set {hika.map::%{hika.map.joinedarena::%player%}%::players} to 0
               set {hika.map::%{hika.map.joinedarena::%player%}%::waitingplayers} to 0
               delete {hika.map::%arg 2%::blocksplaced::*}
               wait 5 seconds
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to false
               set {ingame::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to false
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player2} to {hika.map.mainlobby}
               teleport {hika.map::%{hika.map.joinedarena::%player%}%::player1} to {hika.map.mainlobby}
               set {temp.arena} to {hika.map.joinedarena::%player%}
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player1}%} to 0
               set {hika.map::%{temp.arena}%::player1} to 0
               set {hika.map.joinedarena::%{hika.map::%{hika.map.joinedarena::%player%}%::player2}%} to 0
               set {hika.map::%{temp.arena}%::player2} to 0
               delete {temp.arena}       




Si jamais ça peut aider, je suis en 1.12.2 (je ne connais pas ma version de skript, qui doit être 1.12 ou pas loin, mais je doute fortement que mon problème viens de là).

 

Merci d'avoir pris le temps de lire, et qui sait, peut-être de répondre.

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Je viens de regarder et effectivement oui.

[spoiler=Erreur console]

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! [skript] Severe Error:

[13:04:58] [server thread/ERROR]: #!#! Could not load hikabrain.sk

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! Something went horribly wrong with Skript.

[13:04:58] [server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[13:04:58] [server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).

[13:04:58] [server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.

[13:04:58] [server thread/ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,

[13:04:58] [server thread/ERROR]: #!#! nor it will work, unless you switch to supported platform.

[13:04:58] [server thread/ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! Stack trace:

[13:04:58] [server thread/ERROR]: #!#! java.lang.IllegalStateException: Cannot use classinfos until registration is over

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.checkAllowClassInfoInteraction(Classes.java:241)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfoFromUserInput(Classes.java:336)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:376)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:571)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:347)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader$$Lambda$28/1505538807.run(Unknown Source)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:359)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:289)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader$$Lambda$27/2120505968.run(Unknown Source)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:319)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.Skript.reload(Skript.java:700)

[13:04:58] [server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:161)

[13:04:58] [server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)

[13:04:58] [server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140)

[13:04:58] [server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:631)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1333)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1193)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(SourceFile:37)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(SourceFile:9)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)

[13:04:58] [server thread/ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

[13:04:58] [server thread/ERROR]: #!#! at java.util.concurrent.FutureTask.run(FutureTask.java:266)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:696)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:371)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:651)

[13:04:58] [server thread/ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:555)

[13:04:58] [server thread/ERROR]: #!#! at java.lang.Thread.run(Thread.java:745)

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! Version Information:

[13:04:58] [server thread/ERROR]: #!#! Skript: 2.2-dev32

[13:04:58] [server thread/ERROR]: #!#! Bukkit: 1.12.2-R0.1-SNAPSHOT

[13:04:58] [server thread/ERROR]: #!#! Minecraft: 1.12.2

[13:04:58] [server thread/ERROR]: #!#! Java: 1.8.0_51 (Java HotSpot 64-Bit Server VM 25.51-b03)

[13:04:58] [server thread/ERROR]: #!#! OS: Linux amd64 3.2.0-4-amd64

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! Running CraftBukkit: false

[13:04:58] [server thread/ERROR]: #!#! Running Spigot (or compatible): false

[13:04:58] [server thread/ERROR]: #!#! Running Paper (or compatible): false

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! Current node: command /hika [] [] [] []: (hikabrain.sk, line 25)

[13:04:58] [server thread/ERROR]: #!#! Current item: null

[13:04:58] [server thread/ERROR]: #!#! Thread: Server thread

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! Language: english

[13:04:58] [server thread/ERROR]: #!#! Link parse mode: DISABLED

[13:04:58] [server thread/ERROR]: #!#!

[13:04:58] [server thread/ERROR]: #!#! End of Error.

[13:04:58] [server thread/ERROR]: #!#!

 

 

 

Et ma version de Skript est:

2.2-dev32

  • 0
Posté(e)
every 1 ticks:
   loop all players:

Ta pas des soucis de lag?

Essaye le on any movement

 

LOL c'est tout aussi pire pour les lags !

 

Bref essaye de télécharger une version enterieur de Skript, il ce pourrai que la version que tu utilise soit buggé avec les loads, sinon cela pourrai venir aussi d'un addon attendue que tu n'aurais pas installer.

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