Bonjour,
voici mon code:
on join:
clear player's inventory
give a clock named "&a&lMenu" to the slot 4 of player
on right-click with a clock:
execute player command "/menu"
command /menu:
permission : clock.menu
permission message: &1> &cVous n'avez pas accès a cette command !
trigger:
open chest with 5 rows named "&a&lMenu" to player
wait 1 tick
format slot 0 of player with black glass named "&f" to be unstealable
loop 44 times:
loop-number is not 22:
format slot loop-number of player with black glass named "&f" to be unstealable
format slot 22 of player with bed named "&cSpawn" to close then run [execute player command "/spawn"]
format slot 4 of player with glowstone named "&cMini-Jeu" to close then run [execute player command "/mvtp Mini-Jeu"]
format slot 0 of player with diamond sword named "&cPvP Faction" to close then run [execute player command "/server PlayFull2"]
le problème est pour la dernière ligne car je possède un serveur bungeecord.. je voudrai faire en sorte que quand le joueur click sur l'épée a partir du menu soit tpo sur le serveur PlayFull2