Aller au contenu
  • 0

Load Kit


Question

Posté(e)

Bonjour je code un skript 1v1 mais j'ai un probleme

pour les fautes j'ai 0 et j'ai que skRayFall SkQuery et skript biensure pour le message d'errerur quand je load le kit j'ai an internal error has occurred while attempting to perform this command

je ne sait pas pourquelle raison j'arrive pas a load le kit saved voici le :

 

command /savekitnodebuff1 <player>:
   trigger:
       set {save.%player%.lastused} to now
       clear {kitnodebuff.%player%}
       wait 1 tick
       set {kitnodebuff.%player%} to player's serialized inventory
       set {kithelmnodebuff.%player%} to helmet of player
       set {kitchestnodebuff.%player%} to chestplate of player
       set {kitlegsnodebuff.%player%} to leggings of player
       set {kitbootsnodebuff.%player%} to boots of player
       clear player's helmet
       clear player's chestplate
       clear player's leggings
       clear player's boots
       equip player argument with {kithelmnodebuff.%player%}
       equip player argument with {kitchestnodebuff.%player%}
       equip player argument with {kitlegsnodebuff.%player%}
       equip player argument with {kitbootsnodebuff.%player%}
       set {kit.nodebuffs.save.%player%} to true
       message "&bKit 1 Save Debuff" to player
       stop

#load kit

command /loadkitcustomnd:
   trigger:
       if {kit.nodebuffs.save.%player%} is true:
           set {load.%player%.lastused} to now
           restore inventory of player from {kitnodebuff.%player%}
           wait 1 tick
           equip player with {kitbootsnodebuff.%player%}
           equip player with {kitchestnodebuff.%player%}
           equip player with {kitlegsnodebuff.%player%}
           equip player with {kithelmnodebuff.%player%}
           message "&bKit chargé!" to player
           stop
       else:
           send "&cPas de kit!"

9 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Il me faudrait le code d'erreur dans la console qui apparaît quand tu as le message "An internal error has occured while attempting to perform this command" pour voir d'où ça vient

  • 0
Posté(e)

[05:49:10 INFO]: BoomXhakaLaca [b4280556-239c-47af-bce1-ec327918c2fe]: /customloaddebuff1

[05:49:10 ERROR]: #!#!

[05:49:10 ERROR]: #!#! [skript] Severe Error:

[05:49:10 ERROR]: #!#!

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

[05:49:10 ERROR]: #!#! If you're a server admin however please go to http://forums.skunity.com/t/4148?u=nfell2009

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

[05:49:10 ERROR]: #!#! If not please reply with meaningful content, copy & paste this whole error into a pastebin (http://pastebin.com),

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

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

[05:49:10 ERROR]: #!#! By following this guide fixing the error should be easy and done fast. IF YOU DON'T FOLLOW IT, WE'LL HUNT YOU DOWN.

[05:49:10 ERROR]: #!#!

[05:49:10 ERROR]: #!#! Stack trace:

[05:49:10 ERROR]: #!#! java.lang.IllegalArgumentException: Chests must have a size that is a multiple of 9!

[05:49:10 ERROR]: #!#! at org.apache.commons.lang.Validate.isTrue(Validate.java:136)

[05:49:10 ERROR]: #!#! at org.bukkit.craftbukkit.v1_9_R1.CraftServer.createInventory(CraftServer.java:1524)

[05:49:10 ERROR]: #!#! at com.w00tmast3r.skquery.util.serialization.InventorySerialUtils.fromBase64(InventorySerialUtils.java:34)

[05:49:10 ERROR]: #!#! at com.w00tmast3r.skquery.elements.effects.EffDeserializeReturn.execute(EffDeserializeReturn.java:28)

[05:49:10 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:54)

[05:49:10 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)

[05:49:10 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)

[05:49:10 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)

[05:49:10 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)

[05:49:10 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)

[05:49:10 ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)

[05:49:10 ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)

[05:49:10 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[05:49:10 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

[05:49:10 ERROR]: #!#! at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

[05:49:10 ERROR]: #!#! at java.lang.reflect.Method.invoke(Unknown Source)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)

[05:49:10 ERROR]: #!#! at ch.njol.skript.Skript.dispatchCommand(Skript.java:1049)

[05:49:10 ERROR]: #!#! at ch.njol.skript.effects.EffCommand.execute(EffCommand.java:86)

[05:49:10 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:54)

[05:49:10 ERROR]: #!#! at com.w00tmast3r.skquery.skript.LambdaEffect.walk(LambdaEffect.java:35)

[05:49:10 ERROR]: #!#! at com.w00tmast3r.skquery.util.custom.menus.v2_.SlotRule.run(SlotRule.java:30)

[05:49:10 ERROR]: #!#! at com.w00tmast3r.skquery.util.custom.menus.v2_.FormattedSlotManager.onClick(FormattedSlotManager.java:66)

[05:49:10 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[05:49:10 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

[05:49:10 ERROR]: #!#! at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

[05:49:10 ERROR]: #!#! at java.lang.reflect.Method.invoke(Unknown Source)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)

[05:49:10 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1852)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:33)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:10)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13)

[05:49:10 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

[05:49:10 ERROR]: #!#! at java.util.concurrent.FutureTask.run(Unknown Source)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660)

[05:49:10 ERROR]: #!#! at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559)

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

[05:49:10 ERROR]: #!#!

[05:49:10 ERROR]: #!#! Version Information:

[05:49:10 ERROR]: #!#! Skript: 2.2-Fixes-V9b

[05:49:10 ERROR]: #!#! Bukkit: 1.9-R0.1-SNAPSHOT

[05:49:10 ERROR]: #!#! Minecraft: 1.9

[05:49:10 ERROR]: #!#! Java: 1.8.0_73 (Java HotSpot 64-Bit Server VM 25.73-b02)

[05:49:10 ERROR]: #!#! OS: Windows 10 amd64 10.0

[05:49:10 ERROR]: #!#!

[05:49:10 ERROR]: #!#! Running CraftBukkit: false

[05:49:10 ERROR]: #!#!

[05:49:10 ERROR]: #!#! Current node: null

[05:49:10 ERROR]: #!#! Current item: deserialize return

[05:49:10 ERROR]: #!#!

[05:49:10 ERROR]: #!#! Thread: Server thread

[05:49:10 ERROR]: #!#!

[05:49:10 ERROR]: #!#! End of Error.

[05:49:10 ERROR]: #!#!

  • 0
Posté(e)

"Chests must have a size that is a multiple of 9!"

Tout est dit dans cette phrase. L'inventaire que tu essaye de charger dans le coffre n'a pas un nombre de slots multiple de 9.

Pour régler ce problème tu peux essayer de loop l'inventaire et d'ajouter les items un par un.

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