if arg 1 is "modify":
if player has permission "{@Permission_Kit_Modify}" or "{@Permission_Générale}":
if arg 2 is not set:
send "{@Prefix} {@Nom_Du_Kit_Non_Set}"
if arg 2 is set:
if arg 3 is not set:
if {kit.%arg 2%} is not set:
send "{@Prefix} {@Kit_Existe_Pas}"
else:
close player's inventory
wait 2 ticks
open chest with 6 rows named "&6Panel du Kit &b%arg 2% &6!" to player
wait 2 ticks
format slot 0 of the player with white window glass named " " to be unstealable
format slot 1 of the player with white window glass named " " to be unstealable
format slot 7 of the player with white window glass named " " to be unstealable
format slot 8 of the player with white window glass named " " to be unstealable
format slot 9 of the player with white window glass named " " to be unstealable
format slot 17 of the player with white window glass named " " to be unstealable
format slot 36 of the player with white window glass named " " to be unstealable
format slot 44 of the player with white window glass named " " to be unstealable
format slot 45 of the player with white window glass named " " to be unstealable
format slot 46 of the player with white window glass named " " to be unstealable
format slot 52 of the player with white window glass named " " to be unstealable
format slot 53 of the player with white window glass named " " to be unstealable
format slot 12 of the player with light green window glass named " " to be unstealable
format slot 13 of the player with light green window glass named " " to be unstealable
format slot 14 of the player with light green window glass named " " to be unstealable
format slot 20 of the player with light green window glass named " " to be unstealable
format slot 24 of the player with light green window glass named " " to be unstealable
format slot 28 of the player with light green window glass named " " to be unstealable
format slot 31 of the player with light green window glass named " " to be unstealable
format slot 34 of the player with light green window glass named " " to be unstealable
format slot 38 of the player with light green window glass named " " to be unstealable
format slot 39 of the player with light green window glass named " " to be unstealable
format slot 41 of the player with light green window glass named " " to be unstealable
format slot 42 of the player with light green window glass named " " to be unstealable
format slot 40 of the player with paper named "&dEtat actuel du Kit" with lore "||&ePermission : %{kit.%arg 2%.etat.permission}%||&eMonde unique : %{kit.%arg 2%.etat.world}%||&eCooldown : %{kit.%arg 2%.etat.cooldown}%" to be unstealable
if {kit.%arg 2%.activate} is false:
format slot 22 of the player with pink dye named "&aActiver/Désactiver le Kit" with lore "||&aPermet d'activer ou de désactiver le Kit ! || ||&aSi un Kit est désactivé, ||&ail ne pourra pas être utilisé ! || ||&aClique-ici pour &eActiver &ale Kit ! || ||&bEtat -> &cDésactivé &b!" to close then run [set {kit.%arg 2%.activate} to true]->[make player execute command "{@Commande_Kits_Admin} modify %arg 2%"]
if {kit.%arg 2%.activate} is true:
format slot 22 of the player with light blue dye named "&aActiver/Désactiver le Kit" with lore "||&aPermet d'activer ou de désactiver le Kit ! || ||&aSi un Kit est désactivé, ||&ail ne pourra pas être utilisé ! || ||&aClique-ici pour &eDésactiver &ale Kit ! || ||&bEtat -> &aActivé &b!" to close then run [set {kit.%arg 2%.activate} to false]->[make player execute command "{@Commande_Kits_Admin} modify %arg 2%"]
format slot 29 of the player with stick named "&bAjouter une permission !" with lore "||&ePermet d'ajouter une permission au Kit !" to close then run [make player execute command "{@Commande_Kits_Admin} modify %arg 2% permission"]
format slot 30 of the player with stick named "&bAjouter un monde !" with lore "||&ePermet d'ajouter un monde où le Kit||&ene sera accessible uniquement dans ce dernier !" to close then run [make player execute command "{@Commande_Kits_Admin} modify %arg 2% world"]
format slot 32 of the player with stick named "&bAjouter un Cooldown !" with lore "||&ePermet d'ajouter un Cooldown au Kit !" to close then run [make player execute command "{@Commande_Kits_Admin} modify %arg 2% cooldown"]
format slot 33 of the player with stick named "&bComing Soon !" with lore "||&eA venir ;) !" to be unstealable
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
AzeLiK
Bonjour a tous,
J'ai un skript et ce bout de code ne fonctionne pas.
http://www.noelshack.com/2016-44-1478101984-capture.png
Merci d'avance pour votre aide.
AzeLiK
7 réponses à cette question
Messages recommandés