Aller au contenu
  • 0

érreur inconnue


Question

Posté(e)

Bonjour,

je suis en train de coder un plugin pvp kit pour m'entrainer un peu sur skript

et je rcoi cette érreur quand je load /reload le skript

[spoiler=érreur]

[skript] Severe Error:

[10:40:19 ERROR]: #!#! Could not load pvpKit.sk

[10:40:19 ERROR]: #!#!

[10:40:19 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.

[10:40:19 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/

[10:40:19 ERROR]: #!#! and check whether this error has already been reported.

[10:40:19 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),

[10:40:19 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.

[10:40:19 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.

[10:40:19 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.

[10:40:19 ERROR]: #!#!

[10:40:19 ERROR]: #!#! Stack trace:

[10:40:19 ERROR]: #!#! java.lang.IllegalStateException: No match found

[10:40:19 ERROR]: #!#! at java.util.regex.Matcher.group(Unknown Source)

[10:40:19 ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:349)

[10:40:19 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:472)

[10:40:19 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:271)

[10:40:19 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:167)

[10:40:19 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)

[10:40:19 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)

[10:40:19 ERROR]: #!#! at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:647)

[10:40:19 ERROR]: #!#! at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchServerCommand(CraftServer.java:633)

[10:40:19 ERROR]: #!#! at net.minecraft.server.v1_10_R1.DedicatedServer.aL(DedicatedServer.java:438)

[10:40:19 ERROR]: #!#! at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:401)

[10:40:19 ERROR]: #!#! at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668)

[10:40:19 ERROR]: #!#! at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567)

[10:40:19 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)

[10:40:19 ERROR]: #!#!

[10:40:19 ERROR]: #!#! Version Information:

[10:40:19 ERROR]: #!#! Skript: 2.2-dev23

[10:40:19 ERROR]: #!#! Bukkit: 1.10.2-R0.1-SNAPSHOT

[10:40:19 ERROR]: #!#! Minecraft: 1.10.2

[10:40:19 ERROR]: #!#! Java: 1.8.0_111 (Java HotSpot Client VM 25.111-b14)

[10:40:19 ERROR]: #!#! OS: Windows 10 x86 10.0

[10:40:19 ERROR]: #!#!

[10:40:19 ERROR]: #!#! Running CraftBukkit: false

[10:40:19 ERROR]: #!#!

[10:40:19 ERROR]: #!#! Current node: command /addkit <text>: (pvpKit.sk, line 25)

[10:40:19 ERROR]: #!#! Current item: null

[10:40:19 ERROR]: #!#!

[10:40:19 ERROR]: #!#! Thread: Server thread

[10:40:19 ERROR]: #!#!

[10:40:19 ERROR]: #!#! End of Error.

[10:40:19 ERROR]: #!#!

 

 

 

mon code est le suivant

on damage :
   if attacker is holding fishing_rod :
       set {victime} to the name of the victim
       set {agresseur} to the name of the attacker

   else if damage cause is snowball:
       set {_switcher} to victim's location
       teleport the victim to the attacker
       teleport the attacker to {_switcher}
       reset {_switcher}  

on right click with a fishing rod :
   if {victime} is set :
       teleport {victime} to {agresseur}
       reset {victime}
       reset {agresseur}  

# les commandes (ajouter kit ,enlever un kit et prendre un kit)

command  /addkit <text>:
   trigger :
       if arg-1 is set :
           if {kit.%arg-1%} is not set :
               add arg-1 to {kit.liste::*}
               set {_kit} to 0
               set {kit.%arg-1} to true
               loop 36 times:
                   set {kit.%arg-1%.%_kit%} to slot of player's inventory
                   add 1 to {_kit}
               set {kit.%arg-1%.casque} to player's helmet
               set {kit.%arg-1%.torse} to player's chestplate
               set {kit.%arg-1%.jambieres} to player's legging
               set {kit.%arg-1%.botes} to player's boots
               send "le kit %arg-1% a bien été crée"
               stop trigger
           if {kit.%arg-1%} is set:
               send "le kit %arg-1% a déja été crée"
               stop trigger
       if arg-1 is not set :
           send /addkit <nom du kit>
           stop trigger

command /kit <text>:
   trigger:
       if arg-1 is set :
           if {kit.%arg-1%} is set:
               set {_kit} to 0
               loop 36 times:
                   give {kit.%arg-1%.%kit%} to player
                   add 1 to {_kit}
               give {kit.%arg-1%.casque} to player              
               give {kit.%arg-1%.torse} to player
               give {kit.%arg-1%.jambieres} to    player
               give {kit.%arg-1%.botes} to player
               stop trigger
           if {kit.%arg-1%} is not set:
               send "ce kit n'existe pas"
               send "liste des kits :%kit.liste::*%"
               stop trigger
       if arg-1 is not set :
           send "liste des kits : %kit.list::*%"
           stop trigger

 

en espérant que au moins certain m'auront compris , merci d'avance ^-^

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Je suis absolument pas sûr, mais je me demande si ça vient pas du fait que t'as un autre plug-in qui utilise déjà la commande /addkit, et que ça va donc en contradiction avec skript. Essaye de changer le nom de tes commandes, par exemple à la place de /addkit tu met /ajouterkit.

Sinon je vois pas trop :/

  • 0
Posté(e)

Sans succès :(

Je sais pas du tout quoi faire enfait parce que j'avai déja eu cette erreur , et d'un coup elle était partie alors que j'avai juste changé l'indentation je crois et la elle reviens alors que j'ai rien changé

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