Aller au contenu
  • 0

Bug to close then run GUI


Question

Posté(e)

Bonjour.

Voici le code:

command /mod <offline player>:
   permission: mod.kick
   trigger:
       open chest with 1 rows named "&4[&cMod&4] &5%arg 1%" to player
       wait 2 tick
       format slot 0 of player with arrow named "&cKick" to close then run [make player execute command "/kickpanel %arg 1%"]
       format slot 1 of player with player head named "&cMute" to close then run [make player execute command "/mutepanel %arg 1%"]
       format slot 2 of player with cactus named "&cTempbannir" to close then run [make player execute command "/tempbanpanel %arg 1%"]
       format slot 3 of player with skeleton head named "&cBannir" to close then run [make player execute command "/banpanel %arg 1%"]
       format slot 4 of player with red glass named "&4[&cEryGuard&4] &5%arg 1%" to close
       format slot 5 of player with zombie head named "&aDébannir" to close then run [make player execute command "/pardon %arg 1%"]
       format slot 6 of player with creeper head named "&aDémute" to close then run [make player execute command "/unmute %arg 1%"]
       format slot 7 of player with book named "&aCasier judiciaire" to close then run [make player execute command "/casier %arg 1%"]
       format slot 8 of player with red glass named "&4[&cEryGuard&4] &5%arg 1%" to close

 

Quand le code est mis sur le serveur, les objets dans le GUI s'équipent au joueur et les commandes ne s'effectuent pas.

Merci pour votre aide.

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Je suis pas sur mais je crois que offlineplayer bug moi j'avais essayer des trucs avec offlineplayer mais sa n'affiche rien, avec <text> sa ne fonctionnerais pas pour toi vu que tu utilise la console ?

  • 0
Posté(e)

Ha non j'avais mal lu pardon.

Je n'ai aucune idée si sa fonctionne mais tu peut essayé ça ?

Car je suppose que /mod <player> ne fonctionne pas ?

 

on quit:
   set {leave.%player%} to "%player%"

on join:
   if {leave.%player%} is set:
       delete {leave.%player%}

command /mod <text>:
   permission: mod.kick
   trigger:
       open chest with 1 rows named "&4[&cMod&4] &5%arg 1%" to player
       wait 2 tick
       format slot 0 of player with arrow named "&cKick" to close then run [make player execute command "/kickpanel %{leave.%arg 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.