Aller au contenu
  • 0

"Remove" des truc dans les fichiers YML


Question

Posté(e)

Bonjour, bonjour

 

J'étais tranquillement en train de "skripter" quand une erreur arriva.

Mon code:

[spoiler=Code]

command /test [<text>] [<text>]:
   trigger:
       if arg 1 is "create":
           if arg 2 is set:
               add "%player%" to yaml list "villes.%arg 2%.membres" from file "Ville.yml"
               set yaml value "villes.%arg 2%.description" from file "Ville.yml" to "Défaut"
               message "Ville %arg 2% crée !"
           else:
               message "Précise un nom"
       else if arg 1 is "remove":
           if arg 2 is set:
               remove "%arg 2%" from yaml list "villes" from "Ville.yml"
               message "Ville %arg 2% suprimée !"
           else:
               message "Précise un nom"

 

(comme AD-DONS j'ai SkQuerry, SkRayFall, TuSke, Wildskript de la signature de @PsYZiiK et ils sont tous en 1.10)

Mon "Ville.yml":

[spoiler=Fichier 'Ville.yml']

villes:
 MDR:
   membres:
   - Jaymun723
   description: Défaut

 

Mais quand je fais "/test remove MDR" par exemple ça me fait une "An internal error occured while attempting to perform this command."

Sur la console:

[spoiler=Erreur console]

[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! [skript] Severe Error:
[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[19:06:29 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[19:06:29 ERROR]: #!#! and check whether this error has already been reported.
[19:06:29 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it
(or use paste service),
[19:06:29 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[19:06:29 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[19:06:29 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! Stack trace:
[19:06:29 ERROR]: #!#! java.lang.NullPointerException
[19:06:29 ERROR]: #!#!     at com.w00tmast3r.skquery.elements.expressions.ExprYAMLValue.change(ExprYAMLValue.java:163)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:273)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[19:06:29 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
[19:06:29 ERROR]: #!#!     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
[19:06:29 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[19:06:29 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[19:06:29 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[19:06:29 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[19:06:29 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[19:06:29 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1343)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1186)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[19:06:29 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[19:06:29 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:732)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668)
[19:06:29 ERROR]: #!#!     at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567)
[19:06:29 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! Version Information:
[19:06:29 ERROR]: #!#!   Skript: 2.2-dev22c
[19:06:29 ERROR]: #!#!   Bukkit: 1.10.2-R0.1-SNAPSHOT
[19:06:29 ERROR]: #!#!   Minecraft: 1.10.2
[19:06:29 ERROR]: #!#!   Java: 1.8.0_111 (Java HotSpot(TM) 64-Bit Server VM 25.111-b14)
[19:06:29 ERROR]: #!#!   OS: Windows 7 amd64 6.1
[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! Running CraftBukkit: false
[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! Current node: null
[19:06:29 ERROR]: #!#! Current item: remove "%the 2nd argument%" from yaml
[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! Thread: Server thread
[19:06:29 ERROR]: #!#!
[19:06:29 ERROR]: #!#! End of Error.
[19:06:29 ERROR]: #!#!

 

 

Voilà, voilà donc si quelqu'un peux m'aider je suis preneur !

 

Merci de m'avoir lu !

5 réponses à cette question

Messages recommandés

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