Bonjour j'ai besoin d'aide pour mon skript je n'arrive pas à faire en sorte que quand on clique sur l'item du gui sa se connecte sur un autre serveur.
Voici le code:
#Skript by Skello14
On join:
remove 1 fishing rod named "&c&lNavigation" from player
give 1 fishing rod named "&c&lNavigation" to player
On right click with fishing rod:
open chest with 1 rows named "&4&lNavigation" to player
wait 1 tick
format slot 5 of player with black stained glass pane to close
format slot 1 of player with black stained glass pane to close
format slot 3 of player with black stained glass pane to close
format slot 0 of player with diamond sword named "&c&l1vs1" with lore "&5&oAffronte des joueurs pour devenir le meilleur" to close then run [make player execute command "/server swag"]
format slot 4 of player with black stained glass pane to close
format slot 2 of player with golden apple named "&d&lUHC" with lore "&5&oPrépare tes pommes d'or" to close then run [make player execute command "/server uhc"]
format slot 6 of player with black stained glass pane to close
format slot 7 of player with black stained glass pane to close
format slot 8 of player with black stained glass pane to close
command /navigation:
aliases: nv, nav
permission: nav.gation
trigger:
open chest with 1 rows named "&4&lNavigation" to player
wait 1 tick
format slot 5 of player with black stained glass pane to close
format slot 1 of player with black stained glass pane to close
format slot 3 of player with black stained glass pane to close
format slot 0 of player with diamond sword named "&c&l1vs1" with lore "&5&oAffronte des joueurs pour devenir le meilleur" to close then run [make player execute command "/server swag"]
format slot 4 of player with black stained glass pane to close
format slot 2 of player with golden apple named "&d&lUHC" with lore "&5&oPrépare tes pommes d'or" to close then run [make player execute command "/server uhc"]
format slot 6 of player with black stained glass pane to close
format slot 7 of player with black stained glass pane to close
format slot 8 of player with black stained glass pane to close
On drop fishing rod:
if player has permission "fish.bg":
cancel event