Aller au contenu
  • 0

Achat de spawners avec GUI


Question

Posté(e)

Version de Minecraft : 1.8.8
Version de Skript : 2.4.1

Addons utilisés: Skelett, SkQuery, SkRayFall, skript-yaml, SkUtilities, Tuske

Type du skript : Je souhaite pouvoir ouvrir un gui avec la commande /spawner, ce gui permettrait d'acheter des spawners.

Description du script :

Bonjour tout le monde !

J'ai besoin d'aide par rapport aux GUI qui me posent pas mal de problèmes. Comme dit plus haut, j'aimerai pouvoir acheter des spawners via un gui. Le problème rencontré se situe au niveau de l'ouverture du gui. J'ai regardé la documentation Tuske et j'ai tout bien suivie, mais cela ne marche toujours pas : quand j'effectue la commande, rien ne se passe (ni au niveau client, ni au niveau console). Aucune erreur lors du reload.

 

Voici mon code :

command /spawner:
	trigger:
		create a gui with id "SpawnerShop" with virtual chest with 1 row named "&b&lSpawner shop":
			make gui slot 2 with spawner named "&b&lIron Golem Spawner" with lore "&7Price&8: &3&o1750"
			make gui slot 3 with spawner named "&b&lBlaze Spawner" with lore "&7Price&8: &3&o450.000"
			make gui slot 4 with spawner named "&b&lZombie Spawner" with lore "&7Price&8: &3&o55.000"
			make gui slot 5 with spawner named "&b&lPig Spawner" with lore "&7Price&8: &3&o115.000"

Merci d'avance

Messages recommandés

  • 0
Posté(e) (modifié)

Salut, Tu peux tout simplement faire

command /spawner:
	trigger:
		open virtual chest with size 1 named "&b&lSpawner shop" to player
		make gui slot 2 of player with spawner named "&b&lIron Golem Spawner" with lore "&7Price&8: &3&o1750" to run:
			# Ton code
		make gui slot 3 of player with spawner named "&b&lBlaze Spawner" with lore "&7Price&8: &3&o450.000" to run:
			# Ton code
		make gui slot 4 of player with spawner named "&b&lZombie Spawner" with lore "&7Price&8: &3&o55.000" to run:
			# Ton code	
		make gui slot 5 of player with spawner named "&b&lPig Spawner" with lore "&7Price&8: &3&o115.000" to run:
			# Ton code

 

Modifié par LOUDO
  • 0
Posté(e)
il y a 43 minutes, LOUDO a dit :

Salut, Tu peux tout simplement faire


command /spawner:
	trigger:
		open virtual chest with size 1 named "&b&lSpawner shop" to player
		make gui slot 2 of player with spawner named "&b&lIron Golem Spawner" with lore "&7Price&8: &3&o1750" to run:
			# Ton code
		make gui slot 3 of player with spawner named "&b&lBlaze Spawner" with lore "&7Price&8: &3&o450.000" to run:
			# Ton code
		make gui slot 4 of player with spawner named "&b&lZombie Spawner" with lore "&7Price&8: &3&o55.000" to run:
			# Ton code	
		make gui slot 5 of player with spawner named "&b&lPig Spawner" with lore "&7Price&8: &3&o115.000" to run:
			# Ton code

 

J'ai essayé avec ce code mais lorsque le gui s'ouvre, aucun item ne s'affiche. Une erreur s'affiche dans ma console.

Révélation

[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! [Skript] Severe Error:
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! Something went horribly wrong with Skript.
[20:18:24 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[20:18:24 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[20:18:24 ERROR]: #!#! Here is full list of them:
[20:18:24 ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) TuSKe v1.8.2 (github.com/Tuke-Nuke/TuSKe) skript-yaml v1.3.2 skUtilities v0.9.2 (https://tim740.github.io/) Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/) SkQuery v4.1.0
[20:18:24 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[20:18:24 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[20:18:24 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[20:18:24 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[20:18:24 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[20:18:24 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! Stack trace:
[20:18:24 ERROR]: #!#! java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.WeakHashMap
[20:18:24 ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)
[20:18:24 ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)
[20:18:24 ERROR]: #!#!     at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)
[20:18:24 ERROR]: #!#!     at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:251)
[20:18:24 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168)
[20:18:24 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:18:24 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[20:18:24 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[20:18:24 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[20:18:24 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[20:18:24 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[20:18:24 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[20:18:24 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[20:18:24 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[20:18:24 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[20:18:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[20:18:24 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! Version Information:
[20:18:24 ERROR]: #!#!   Skript: 2.4.1 (custom version)
[20:18:24 ERROR]: #!#!     Flavor: selfbuilt-unknown
[20:18:24 ERROR]: #!#!     Date: unknown
[20:18:24 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[20:18:24 ERROR]: #!#!   Minecraft: 1.8.8
[20:18:24 ERROR]: #!#!   Java: 1.8.0_251 (Java HotSpot(TM) 64-Bit Server VM 25.251-b08)
[20:18:24 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! Server platform: Spigot
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! Current node: null
[20:18:24 ERROR]: #!#! Current item: format a gui slot [[long:2]] of the player with ([[itemtype:monster spawner]] named "ºbºlIron Golem Spawner" with lore "º7Priceº8: º3ºo1750" >> ch.njol.skript.classes.data.DefaultConverters$14@33b25380: itemtype -> itemstack)
[20:18:24 ERROR]: #!#! Current trigger: command /spawner (simple event) (spawner.sk, line -1)
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! Thread: Server thread
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! Language: english
[20:18:24 ERROR]: #!#! Link parse mode: DISABLED
[20:18:24 ERROR]: #!#!
[20:18:24 ERROR]: #!#! End of Error.
[20:18:24 ERROR]: #!#!

 

 

  • 0
Posté(e)
il y a 16 minutes, Alexy57 a dit :

Salut, tu devrait passer sous paper ou spigot, c'est plus opti et mieu pour skript, ca pourrait régler le problème.

Salut, c'est quoi les différences et avantages entre paper et spigot ? J'utilise spigot actuellement et je ne sais pas si le bug vient de là

  • 0
Posté(e)
il y a 25 minutes, shizso a dit :

Salut, c'est quoi les différences et avantages entre paper et spigot ? J'utilise spigot actuellement et je ne sais pas si le bug vient de là

Non, ça ne vient pas de Spigot, il n'y a pas de problèmes avec Spigot xD

Paper c'est simplement + optimisé et possédant quelques fonctionnalités supplémentaires


Je pense plutôt que ta version vient de TuSKe elle-même, mais je suis vraiment nul pour conseiller des versions x)

  • 0
Posté(e)
il y a 13 minutes, KneaXy a dit :

Non, ça ne vient pas de Spigot, il n'y a pas de problèmes avec Spigot xD

Paper c'est simplement + optimisé et possédant quelques fonctionnalités supplémentaires


Je pense plutôt que ta version vient de TuSKe elle-même, mais je suis vraiment nul pour conseiller des versions x)

J'avais pas remarqué + plus tôt mais il y a sa version de skript

Prend cette version: Skript 2.2-dev27

  • 0
Posté(e)
il y a 17 minutes, KneaXy a dit :

Non, ça ne vient pas de Spigot, il n'y a pas de problèmes avec Spigot xD

Paper c'est simplement + optimisé et possédant quelques fonctionnalités supplémentaires


Je pense plutôt que ta version vient de TuSKe elle-même, mais je suis vraiment nul pour conseiller des versions x)

 

il y a 2 minutes, LOUDO a dit :

J'avais pas remarqué + plus tôt mais il y a sa version de skript

Prend cette version: Skript 2.2-dev27

J'ai changé pour la version proposée mais du coup mon TuSKe et Umbaska ne marchent plus du tout

  • 0
Posté(e)
Il y a 2 heures, shizso a dit :

Super TuSKe marche avec cette version. Par contre j'ai des erreurs de skript que je n'avais pas avant :

YDDdEbl.png

C'est parce-que tu utilises une version dinosaure de Skript, essaye de vérifier si avec Skript 2.4.1 tu ne peux pas utiliser la version proposé par Alexy57

  • 0
Posté(e)
Il y a 5 heures, KneaXy a dit :

C'est parce-que tu utilises une version dinosaure de Skript, essaye de vérifier si avec Skript 2.4.1 tu ne peux pas utiliser la version proposé par Alexy57

J'ai fait ce que tu m'as dit, quand je fais la commande je reçois ce message "an internal error occured while attempting to perform this command"

l'erreur console :

Révélation

[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! [Skript] Severe Error:
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! Something went horribly wrong with Skript.
[08:57:40 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[08:57:40 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[08:57:40 ERROR]: #!#! Here is full list of them:
[08:57:40 ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) TuSKe v1.8.2 (github.com/Tuke-Nuke/TuSKe) SkStuff v1.6.4.1 skript-yaml v1.3.2 skUtilities v0.9.2 (https://tim740.github.io/) Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/) SkQuery v4.1.0
[08:57:40 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[08:57:40 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[08:57:40 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[08:57:40 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[08:57:40 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[08:57:40 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! Stack trace:
[08:57:40 ERROR]: #!#! java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.WeakHashMap
[08:57:40 ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)
[08:57:40 ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)
[08:57:40 ERROR]: #!#!     at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)
[08:57:40 ERROR]: #!#!     at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:251)
[08:57:40 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168)
[08:57:40 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[08:57:40 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[08:57:40 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[08:57:40 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[08:57:40 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300)
[08:57:40 ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[08:57:40 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[08:57:40 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
[08:57:40 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1181)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1001)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[08:57:40 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[08:57:40 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
[08:57:40 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
[08:57:40 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! Version Information:
[08:57:40 ERROR]: #!#!   Skript: 2.4.1 (custom version)
[08:57:40 ERROR]: #!#!     Flavor: selfbuilt-unknown
[08:57:40 ERROR]: #!#!     Date: unknown
[08:57:40 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[08:57:40 ERROR]: #!#!   Minecraft: 1.8.8
[08:57:40 ERROR]: #!#!   Java: 1.8.0_251 (Java HotSpot(TM) 64-Bit Server VM 25.251-b08)
[08:57:40 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! Server platform: Paper
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! Current node: null
[08:57:40 ERROR]: #!#! Current item: format a gui slot [[long:2]] of the player with ([[itemtype:monster spawner]] named "ºbºlIron Golem Spawner" with lore "º7Priceº8: º3ºo1750" >> ch.njol.skript.classes.data.DefaultConverters$14@6b25536f: itemtype -> itemstack)
[08:57:40 ERROR]: #!#! Current trigger: command /spawner (simple event) (spawner.sk, line -1)
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! Thread: Server thread
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! Language: english
[08:57:40 ERROR]: #!#! Link parse mode: DISABLED
[08:57:40 ERROR]: #!#!
[08:57:40 ERROR]: #!#! End of Error.
[08:57:40 ERROR]: #!#!

 

 

  • 0
Posté(e)

Salut, dans ton dossier plugin, met tout les plugins dans un dossier à part puis laisse seulement le plugin Skript et Tuske, ensuite lance ton serv essaye et dis moi si tu as une erreur. C'est possible que tu obtienne d'autres erreurs de syntaxes mais rien de grave. 

  • 0
Posté(e)
Il y a 1 heure, Alexy57 a dit :

Salut, dans ton dossier plugin, met tout les plugins dans un dossier à part puis laisse seulement le plugin Skript et Tuske, ensuite lance ton serv essaye et dis moi si tu as une erreur. C'est possible que tu obtienne d'autres erreurs de syntaxes mais rien de grave. 

Le /spawner s'ouvre mais n'affiche aucun item. J'ai également une erreur console :

Révélation

[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! [Skript] Severe Error:
[11:29:26 ERROR]: #!#! TuSKe's class com.github.tukenuke.tuske.effects.EffMakeDrop generated an exception while loading
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! Something went horribly wrong with Skript.
[11:29:26 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[11:29:26 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[11:29:26 ERROR]: #!#! Following plugins are probably related to this error in some way:
[11:29:26 ERROR]: #!#! TuSKe (github.com/Tuke-Nuke/TuSKe)
[11:29:26 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[11:29:26 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[11:29:26 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[11:29:26 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[11:29:26 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! Stack trace:
[11:29:26 ERROR]: #!#! java.lang.NullPointerException
[11:29:26 ERROR]: #!#!     at com.github.tukenuke.tuske.effects.EffMakeDrop.<clinit>(EffMakeDrop.java:25)
[11:29:26 ERROR]: #!#!     at java.lang.Class.forName0(Native Method)
[11:29:26 ERROR]: #!#!     at java.lang.Class.forName(Unknown Source)
[11:29:26 ERROR]: #!#!     at ch.njol.skript.SkriptAddon.loadClasses(SkriptAddon.java:108)
[11:29:26 ERROR]: #!#!     at com.github.tukenuke.tuske.TuSKe.onEnable(TuSKe.java:100)
[11:29:26 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
[11:29:26 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332)
[11:29:26 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407)
[11:29:26 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359)
[11:29:26 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318)
[11:29:26 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408)
[11:29:26 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372)
[11:29:26 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327)
[11:29:26 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267)
[11:29:26 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563)
[11:29:26 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! Version Information:
[11:29:26 ERROR]: #!#!   Skript: 2.4.1 (custom version)
[11:29:26 ERROR]: #!#!     Flavor: selfbuilt-unknown
[11:29:26 ERROR]: #!#!     Date: unknown
[11:29:26 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[11:29:26 ERROR]: #!#!   Minecraft: 1.8.8
[11:29:26 ERROR]: #!#!   Java: 1.8.0_251 (Java HotSpot(TM) 64-Bit Server VM 25.251-b08)
[11:29:26 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! Server platform: Paper
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! Current node: null
[11:29:26 ERROR]: #!#! Current item: null
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! Thread: Server thread
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! Language: english
[11:29:26 ERROR]: #!#! Link parse mode: DISABLED
[11:29:26 ERROR]: #!#!
[11:29:26 ERROR]: #!#! End of Error.
[11:29:26 ERROR]: #!#!

 

 

  • 0
Posté(e)
il y a 18 minutes, Alexy57 a dit :

Okay, donc l'erreur semble venir de Tuske.  

On va tenter quelque chose,  ça pourrait fonctionner.

Change serveur.jar par ceci: ttps://getbukkit.org/get/hNiHm0tuqAg1Xg7w7zudk63uHr0xo48D

Essaye aussi de changer TuSke par cette version: https://www.spigotmc.org/resources/tuske.25136/download?version=171805

 

J'ai une erreur sur cette ligne : "Numerics ids are not supported anymore."

open virtual chest with size 1 named "&b&lSpawner shop" to player

 

  • 0
Posté(e)
il y a 2 minutes, LOUDO a dit :

C'est l'item qui pose problème le mot "spawner" marche pas

essaie de mettre à la place "mob spawner"

Si je mets "mob spawner" au lieu de "spawner" j'ai une erreur "can't understand this condition".

  • 0
Posté(e)
il y a 1 minute, shizso a dit :

J'ai une erreur sur cette ligne : "Numerics ids are not supported anymore."


open virtual chest with size 1 named "&b&lSpawner shop" to player

 

Reprend l'ancienne version, c'est juste l'item qui ne marche pas

  • 0
Posté(e)
il y a 1 minute, LOUDO a dit :

Reprend l'ancienne version, c'est juste l'item qui ne marche pas

Pas d'erreur avec l'ancienne version. Par contre quand j'effectue la commande /spawner le gui s'ouvre mais aucun item, "An internal error occured while attempting to perform this command."

Erreur console :

Révélation

[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! [Skript] Severe Error:
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! Something went horribly wrong with Skript.
[12:05:06 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[12:05:06 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[12:05:06 ERROR]: #!#! Here is full list of them:
[12:05:06 ERROR]: #!#! TuSKe v1.8.2 (github.com/Tuke-Nuke/TuSKe)
[12:05:06 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[12:05:06 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[12:05:06 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[12:05:06 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[12:05:06 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[12:05:06 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! Stack trace:
[12:05:06 ERROR]: #!#! java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.WeakHashMap
[12:05:06 ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)
[12:05:06 ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)
[12:05:06 ERROR]: #!#!     at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)
[12:05:06 ERROR]: #!#!     at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:251)
[12:05:06 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168)
[12:05:06 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[12:05:06 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[12:05:06 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[12:05:06 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[12:05:06 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[12:05:06 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[12:05:06 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[12:05:06 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[12:05:06 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[12:05:06 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[12:05:06 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[12:05:06 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! Version Information:
[12:05:06 ERROR]: #!#!   Skript: 2.4.1 (custom version)
[12:05:06 ERROR]: #!#!     Flavor: selfbuilt-unknown
[12:05:06 ERROR]: #!#!     Date: unknown
[12:05:06 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[12:05:06 ERROR]: #!#!   Minecraft: 1.8.8
[12:05:06 ERROR]: #!#!   Java: 1.8.0_251 (Java HotSpot(TM) 64-Bit Server VM 25.251-b08)
[12:05:06 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! Server platform: Spigot
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! Current node: null
[12:05:06 ERROR]: #!#! Current item: format a gui slot [[long:2]] of the player with ([[itemtype:monster spawner]] named "ºbºlIron Golem Spawner" with lore "º7Priceº8: º3ºo1750" >> ch.njol.skript.classes.data.DefaultConverters$14@66787dfe: itemtype -> itemstack)
[12:05:06 ERROR]: #!#! Current trigger: command /spawner (simple event) (spawner.sk, line -1)
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! Thread: Server thread
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! Language: english
[12:05:06 ERROR]: #!#! Link parse mode: DISABLED
[12:05:06 ERROR]: #!#!
[12:05:06 ERROR]: #!#! End of Error.
[12:05:06 ERROR]: #!#!

 

 

  • 0
Posté(e)
il y a 11 minutes, LOUDO a dit :

Essaie de mettre au lieu du "spawner cage" avec "52" (C'est son ID)

 

il y a 5 minutes, LOUDO a dit :

Verdict, met "mob_spawner" et normalement c'est bon !

Lorsque je mets 52, "Numerics ids are not supported anymore", et avec le mob_spawner "Can't understand this condition"

  • 0
Posté(e)
il y a 3 minutes, shizso a dit :

 

Lorsque je mets 52, "Numerics ids are not supported anymore", et avec le mob_spawner "Can't understand this condition"

Pourtant moi ça marche...

command /spawner:
	trigger:
		open virtual chest with size 1 named "&b&lSpawner shop" to player
		make gui slot 2 of player with mob_spawner named "&b&lIron Golem Spawner" with lore "&7Price&8: &3&o1750" to run:
			send "cc"
		make gui slot 3 of player with mob_spawner named "&b&lBlaze Spawner" with lore "&7Price&8: &3&o450.000" to run:
			send "cc"
		make gui slot 4 of player with mob_spawner named "&b&lZombie Spawner" with lore "&7Price&8: &3&o55.000" to run:
			send "cc"	
		make gui slot 5 of player with mob_spawner named "&b&lPig Spawner" with lore "&7Price&8: &3&o115.000" to run:
			send "cc"

 

  • 0
Posté(e) (modifié)
il y a 5 minutes, LOUDO a dit :

Pourtant moi ça marche...


command /spawner:
	trigger:
		open virtual chest with size 1 named "&b&lSpawner shop" to player
		make gui slot 2 of player with mob_spawner named "&b&lIron Golem Spawner" with lore "&7Price&8: &3&o1750" to run:
			send "cc"
		make gui slot 3 of player with mob_spawner named "&b&lBlaze Spawner" with lore "&7Price&8: &3&o450.000" to run:
			send "cc"
		make gui slot 4 of player with mob_spawner named "&b&lZombie Spawner" with lore "&7Price&8: &3&o55.000" to run:
			send "cc"	
		make gui slot 5 of player with mob_spawner named "&b&lPig Spawner" with lore "&7Price&8: &3&o115.000" to run:
			send "cc"

 

Tu es en quelle version de spigot et de skript ? Peut être que cela change

 

EDIT : Même en rajoutant tous les autres addons de skript, aucun changement et toujours une grosse erreur console même quand je laisse juste "spawner" ou que je mets n'importe quel item comme "diamond"

Modifié par shizso
  • 0
Posté(e)

Mmmhh... 

On va faire un ptit test, essaye ça:

command /test:
	trigger:
		open a virtual chest inventory with size 2 named "test" to player
		format gui slot 0 of player with stone named "test" to close
		format gui slot 1 of player with emerald named "test2" to run:
			give 1 emerald to player 
		send "tout est ok"

Dis moi si tu obtiens des erreurs.

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.