Aller au contenu
  • 0

[Aide] Command in GUI


Question

Posté(e)

Bonjours !

J'ai un nouveau problème de rien du tous mais très gênants pour moi : /

 

J'ai tous simplement crée un menu GUI avec des items dedans : D

J'ai fais en sorte que lorsqu'on clik sur l'item le joueur exécute une commande qui lui ouvre un deuxième menu GUI qui provient d'un plugins ! Seul problème le menu GUI du plugins ne s'affiche pas : /

 

Code :

command /keyinfo:
   aliases: /ki
   trigger:
       wait 2 tick
       open chest with 1 rows named "&7[&bInformation Coffre&7]" to player
       wait 1 tick
       format slot 0 of player with 1 Chest named "&7&lBasic" with lore "Clik pour voir les informations !" to close then run [make player execute command "/cc preview Basic %player%"]
       format slot 1 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 2 of player with 1 Chest named "&a&lVote" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Vote %player%"]
       format slot 3 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 4 of player with 1 Chest named "&e&lSpawner" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Classic %player%"]
       format slot 5 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 6 of player with 1 Chest named "&5&lGalactic" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Galactic %player%"]

 

Voilà j'imagine que c'est une petite erreur à la *** ^^

( Ce skript de contient aucune réelle erreur )

Je remercie d'avance toute les personnes qui sauront m'aidé : p

  • J'aime 1

12 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Le plugin en question est ChestCommands non?

Tu as essayé la commande avec les permissions op et avec les permissions joueurs et ça t'affichais bien le menu?

Perso je me souviens de /chestcommands open <file> [player] si jamais ça peut t'aider.

  • J'aime 1
  • 0
Posté(e)

Essaye de mettre to run à la place de to close then run

Le plugin en question est ChestCommands non?

Tu as essayé la commande avec les permissions op et avec les permissions joueurs et ça t'affichais bien le menu?

Perso je me souviens de /chestcommands open <file> [player] si jamais ça peut t'aider.

Non je pense que c'est CrazyCrates (un plugin de caisses) j'ai le même :p

  • 0
Posté(e)
Essaye de mettre to run à la place de to close then run

 

Non je pense que c'est CrazyCrates (un plugin de caisses) j'ai le même :p

Ah autant pour moi chestcommands c'est aussi /cc la commande ^^

  • J'aime 1
  • 0
Posté(e)
Essaye de mettre to run à la place de to close then run

 

Non je pense que c'est CrazyCrates (un plugin de caisses) j'ai le même :p

Oui exact c'est ce plugin ^^ Du coups personne ne peut m'aidé x )

  • J'aime 1
  • 0
Posté(e)
Oui exact c'est ce plugin ^^ Du coups personne ne peut m'aidé x )

Ou alors c'est une erreur au niveau du "transfere" de menu faut attendre que le 1er disparaisse pour faire execute la commande pour ouvrir le 2eme !

Vous voyez ce que je veux dire ?

  • J'aime 1
  • 0
Posté(e)
Si

 

J'aurais fait un truc dans le type :

command /keyinfo:
   aliases: /ki
   trigger:
       wait 2 tick
       open chest with 1 rows named "&7[&bInformation Coffre&7]" to player
       wait 1 tick
       format slot 0 of player with 1 Chest named "&7&lBasic" with lore "Clik pour voir les informations !" to close then run [make player execute command "/§openchest1"]
       format slot 1 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 2 of player with 1 Chest named "&a&lVote" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Vote %player%"]
       format slot 3 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 4 of player with 1 Chest named "&e&lSpawner" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Classic %player%"]
       format slot 5 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 6 of player with 1 Chest named "&5&lGalactic" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Galactic %player%"]

command /§openchest1:
   trigger:
       wait 3 ticks
       make console execute command "/cc preview Basic %player%"

Vu que je suis sur une vielle tablette je ne peux pas refaire pour les autres commandes mais il suffit de reprendre la meme chose !

  • J'aime 2
  • 0
Posté(e)
J'aurais fait un truc dans le type :

command /keyinfo:
   aliases: /ki
   trigger:
       wait 2 tick
       open chest with 1 rows named "&7[&bInformation Coffre&7]" to player
       wait 1 tick
       format slot 0 of player with 1 Chest named "&7&lBasic" with lore "Clik pour voir les informations !" to close then run [make player execute command "/§openchest1"]
       format slot 1 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 2 of player with 1 Chest named "&a&lVote" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Vote %player%"]
       format slot 3 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 4 of player with 1 Chest named "&e&lSpawner" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Classic %player%"]
       format slot 5 of player with 1 redstone block named "&cVIDE" to be unstealable
       format slot 6 of player with 1 Chest named "&5&lGalactic" with lore "Clik pour voir les informations" to close then run [make player execute command "/cc preview Galactic %player%"]

command /§openchest1:
   wait 3 ticks
   make console execute command "/cc preview Basic %player%"

Vu que je suis sur une vielle tablette je ne peux pas refaire pour les autres commandes mais il suffit de reprendre la meme chose !

Ta solutions fonctionne bien : D Tu as juste oublié de mettre les "Trigger" ^^ Sinon merci bien ;D

  • J'aime 1
×
×
  • 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.