Bonjour tout le monde ! Alors je vais vous expliquer mon problème, j'ai un serveur en 1.8 avec les plugins "Skript 2.2, TusKe, SkRayFall, SkQuery, SkLib, Skellet".
J'ai réaliser un skript qui permet d'ouvrir un menu GUI avec différentes options dedans. Dans ce menu j'ai des items, mais quand j'ouvre le menu quelquefois les items sont présents, mais des fois ils sont invisible ou ils on disparu.
Dans ce menu, j'ai une boutique, quand je clique sur l'item d'or, sa m'ouvre un autre menu ou je peux acheter des kits, packs, grade etc... Quand je clique sur un item pour par exemple acheter un pack avec l’économie essentials, ben cela ne marche pas, sa le prend et sa exécute aucune commande pourtant j'ai fais le truc pour que sa exécute la commande ! Mais quelquefois cela marche, je vous dis c'est bizarre, buger..
Voici le skript, dans le /sk reload, Il y a aucune erreur ! Est-ce un problème de plugin, addons ??
----SKRIPT----
on join:
set join message to "&6%player% &7a rejoint le serveur !"
on quit:
set quit message to "&6%player% &7a quitter le serveur !"
on first join:
set slot 4 of player to a clock named "&6Menu"
on right click on clock:
if player is in "world":
if name of player's tool is "&aMenu":
execute player command "/menu"
command /menu:
trigger:
open chest with 6 rows named "&6Menu" to player
wait 1 tick
format slot 27 of player with white stained glass pane named "&6--" to close
format slot 28 of player with white stained glass pane named "&6--" to close
format slot 29 of player with white stained glass pane named "&6--" to close
format slot 30 of player with white stained glass pane named "&6--" to close
format slot 31 of player with white stained glass pane named "&6--" to close
format slot 32 of player with white stained glass pane named "&6--" to close
format slot 33 of player with white stained glass pane named "&6--" to close
format slot 34 of player with white stained glass pane named "&6--" to close
format slot 35 of player with white stained glass pane named "&6--" to close
format slot 40 of player with bed named "&cSpawn !" to close then run [make player execute command "/spawn"]
format slot 44 of player with ender chest named "&6Cosmétiques !" to close then run [make player execute command "/cosmetiques"]
format slot 53 of player with saddle named "&6Pets !" to close then run [make player execute command "/pets"]
format slot 45 of player with paper named "&6Informations !" to close then run [make player execute command "/infos"]
format slot 36 of player with gold ingot named "&6Boutique-En-Jeux !" to close then run [make player execute command "/boutique"]
command /boutique:
trigger:
wait 2 tick
open chest with 1 rows named "&6Boutique-En-Jeux !" to player
format slot 0 of player with white stained glass pane named "&6--" to close
format slot 1 of player with white stained glass pane named "&6--" to close
format slot 2 of player with white stained glass pane named "&6--" to close
format slot 6 of player with white stained glass pane named "&6--" to close
format slot 7 of player with white stained glass pane named "&6--" to close
format slot 8 of player with white stained glass pane named "&6--" to close
format slot 3 of player with dirt named "&6Packs !" to close then run [make player execute command "/boutiquepacks"]
format slot 4 of player with iron chestplate named "&6Grades !" to close then run [make player execute command "/boutiquegrades"]
format slot 5 of player with emerald named "&6Skycoins !" to close then run [make player execute command "/boutiqueskycoins"]
command /boutiquepacks:
trigger:
wait 2 tick
open chest with 1 rows named "&6Packs !" to player
format slot 0 of player with white stained glass pane named "&6--" to close
format slot 2 of player with white stained glass pane named "&6--" to close
format slot 4 of player with white stained glass pane named "&6--" to close
format slot 6 of player with white stained glass pane named "&6--" to close
format slot 8 of player with white stained glass pane named "&6--" to close
format slot 1 of player with bricks block named "&cCharpentier" with lore "&7Prix: &b256 000" to close then run "/buycharpentier"
format slot 3 of player with diamond named "&cMinerais" with lore "&7Prix: &b256 000" to close then run "/buyminerais"
format slot 5 of player with glass bottle named "&cAlchimiste" with lore "&7Prix: &b800 000" to close then run "/buyalchimiste"
format slot 7 of player with bottle o' enchanting named "&cEnchantement" with lore "&7Prix: &b200 000" to close then run "/buyenchantement"
command /buycharpentier:
trigger:
if player's balance is greater than 255000:
remove 256000 from player's balance
give 32 oak wood to player
give 48 grass block to player
give 32 stone to player
give 64 cobblestone to player
give 16 glowstone to player
give 64 glass to player
send "&7[&6SkyDaria&7] &7Vous avez acheter le pack &6Charpentier !"
else:
send "&7[&6SkyDaria&7] &7Vous n'avez pas assez de SkyCoins !"
command /buyminerais:
trigger:
if player's balance is greater than 255000:
remove 256000 from player's balance
give 15 gold ingot to player
give 25 iron ingot to player
give 7 diamond to player
give 32 coal to player
give 2 emerald to player
send "&7[&6SkyDaria&7] &7Vous avez acheter le pack &6Minerais !"
else:
send "&7[&6SkyDaria&7] &7Vous n'avez pas assez de SkyCoins !"
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.
Question
VenozFX
Bonjour tout le monde ! Alors je vais vous expliquer mon problème, j'ai un serveur en 1.8 avec les plugins "Skript 2.2, TusKe, SkRayFall, SkQuery, SkLib, Skellet".
J'ai réaliser un skript qui permet d'ouvrir un menu GUI avec différentes options dedans. Dans ce menu j'ai des items, mais quand j'ouvre le menu quelquefois les items sont présents, mais des fois ils sont invisible ou ils on disparu.
Dans ce menu, j'ai une boutique, quand je clique sur l'item d'or, sa m'ouvre un autre menu ou je peux acheter des kits, packs, grade etc... Quand je clique sur un item pour par exemple acheter un pack avec l’économie essentials, ben cela ne marche pas, sa le prend et sa exécute aucune commande pourtant j'ai fais le truc pour que sa exécute la commande ! Mais quelquefois cela marche, je vous dis c'est bizarre, buger..
Voici le skript, dans le /sk reload, Il y a aucune erreur ! Est-ce un problème de plugin, addons ??
----SKRIPT----
on join:
set join message to "&6%player% &7a rejoint le serveur !"
on quit:
set quit message to "&6%player% &7a quitter le serveur !"
on first join:
set slot 4 of player to a clock named "&6Menu"
on right click on clock:
if player is in "world":
if name of player's tool is "&aMenu":
execute player command "/menu"
command /menu:
trigger:
open chest with 6 rows named "&6Menu" to player
wait 1 tick
format slot 27 of player with white stained glass pane named "&6--" to close
format slot 28 of player with white stained glass pane named "&6--" to close
format slot 29 of player with white stained glass pane named "&6--" to close
format slot 30 of player with white stained glass pane named "&6--" to close
format slot 31 of player with white stained glass pane named "&6--" to close
format slot 32 of player with white stained glass pane named "&6--" to close
format slot 33 of player with white stained glass pane named "&6--" to close
format slot 34 of player with white stained glass pane named "&6--" to close
format slot 35 of player with white stained glass pane named "&6--" to close
format slot 40 of player with bed named "&cSpawn !" to close then run [make player execute command "/spawn"]
format slot 44 of player with ender chest named "&6Cosmétiques !" to close then run [make player execute command "/cosmetiques"]
format slot 53 of player with saddle named "&6Pets !" to close then run [make player execute command "/pets"]
format slot 45 of player with paper named "&6Informations !" to close then run [make player execute command "/infos"]
format slot 36 of player with gold ingot named "&6Boutique-En-Jeux !" to close then run [make player execute command "/boutique"]
command /boutique:
trigger:
wait 2 tick
open chest with 1 rows named "&6Boutique-En-Jeux !" to player
format slot 0 of player with white stained glass pane named "&6--" to close
format slot 1 of player with white stained glass pane named "&6--" to close
format slot 2 of player with white stained glass pane named "&6--" to close
format slot 6 of player with white stained glass pane named "&6--" to close
format slot 7 of player with white stained glass pane named "&6--" to close
format slot 8 of player with white stained glass pane named "&6--" to close
format slot 3 of player with dirt named "&6Packs !" to close then run [make player execute command "/boutiquepacks"]
format slot 4 of player with iron chestplate named "&6Grades !" to close then run [make player execute command "/boutiquegrades"]
format slot 5 of player with emerald named "&6Skycoins !" to close then run [make player execute command "/boutiqueskycoins"]
command /boutiquepacks:
trigger:
wait 2 tick
open chest with 1 rows named "&6Packs !" to player
format slot 0 of player with white stained glass pane named "&6--" to close
format slot 2 of player with white stained glass pane named "&6--" to close
format slot 4 of player with white stained glass pane named "&6--" to close
format slot 6 of player with white stained glass pane named "&6--" to close
format slot 8 of player with white stained glass pane named "&6--" to close
format slot 1 of player with bricks block named "&cCharpentier" with lore "&7Prix: &b256 000" to close then run "/buycharpentier"
format slot 3 of player with diamond named "&cMinerais" with lore "&7Prix: &b256 000" to close then run "/buyminerais"
format slot 5 of player with glass bottle named "&cAlchimiste" with lore "&7Prix: &b800 000" to close then run "/buyalchimiste"
format slot 7 of player with bottle o' enchanting named "&cEnchantement" with lore "&7Prix: &b200 000" to close then run "/buyenchantement"
command /buycharpentier:
trigger:
if player's balance is greater than 255000:
remove 256000 from player's balance
give 32 oak wood to player
give 48 grass block to player
give 32 stone to player
give 64 cobblestone to player
give 16 glowstone to player
give 64 glass to player
send "&7[&6SkyDaria&7] &7Vous avez acheter le pack &6Charpentier !"
else:
send "&7[&6SkyDaria&7] &7Vous n'avez pas assez de SkyCoins !"
command /buyminerais:
trigger:
if player's balance is greater than 255000:
remove 256000 from player's balance
give 15 gold ingot to player
give 25 iron ingot to player
give 7 diamond to player
give 32 coal to player
give 2 emerald to player
send "&7[&6SkyDaria&7] &7Vous avez acheter le pack &6Minerais !"
else:
send "&7[&6SkyDaria&7] &7Vous n'avez pas assez de SkyCoins !"
command /cosmetiques:
trigger:
send "&7----&6Cosmétiques&7----"
send " "
send "&7Bientôt..."
send " "
send "&7----&6Cosmétiques&7----"
command /pets:
trigger:
send "&7----&6Pets&7----"
send " "
send "&7Bientôt..."
send " "
send "&7----&6Pets&7----"
command /infos:
trigger:
send "&7----&6Informations&7----"
send " "
send "&7Twitter: &6@SkyDariaMC"
send "&7Discord: &6 https://discord.gg/DQz5bPH"
send "&7Version: &62.0"
send " "
send "&7----&6Informations&7----"
----SKRIPT----
Merci d'avance pour votre aide !
4 réponses à cette question
Messages recommandés