Aller au contenu
  • 0

Skript Z-kit de PsYZiiK


Question

Posté(e)

Bonjour a tous,

 

J'ai un skript et ce bout de code ne fonctionne pas.

 

http://www.noelshack.com/2016-44-1478101984-capture.png

 

 

        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

 

Merci d'avance pour votre aide.

 

AzeLiK

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Salut,

 

Remplace la ligne 12 par :

 

open chest with 6 rows named "&6Kit &b%arg 2% &6!" to player

Il y a toujours les mêmes erreurs :/

 

EDIT: Cela venait de:

format slot 12 of the player with light green window glass named " " to be unstealable

 

Et j'ai remplacé "window" par "stained"

 

format slot 12 of the player with light green stained glass named " " to be unstealable

  • 0
Posté(e)
Envoie les erreurs

Merci de ton aide, j'ai cependant encore quelques erreur avec Z-Permissions. J'aimerais t'envoyer les logs, mais je ne les trouves nulle part :/.

 

J'ai 55 erreurs.

 

AzeLiK

 

EDIT:

 

J'ai trouver ces logs la, j'espere que ca suffit :)

 

[17:43:21] [ERROR] [skript] 'JsonMessage(player: text, msg: text, tooltip: text, function: text, result: text)' is not a text (Z-Permissions.sk, line 26: function JsonMessage(player: text, msg: text, tooltip: text, function: text, result: text):')
[17:43:21] [ERROR] [skript] 'WF(object: text, file: text)' is not a text (Z-Permissions.sk, line 29: function WF(object: text, file: text):')
[17:43:21] [ERROR] [skript] 'GetFile(file: text) :: text' is not a text (Z-Permissions.sk, line 32: function GetFile(file: text) :: text:')
[17:43:21] [ERROR] [skript] 'Replace(msg: text, player: text, group: text, permission: text, prefix: text, message: text) :: text' is not a text (Z-Permissions.sk, line 36: function Replace(msg: text, player: text, group: text, permission: text, prefix: text, message: text) :: text:')
[17:43:21] [ERROR] [skript] 'WF("# Les noms des groups devront être toujours en minuscule !", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 51: WF("## Les noms des groups devront être toujours en minuscule !", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF("# Pour la couleur de vos préfixes, utilisez le signe '&' !", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 52: WF("## Pour la couleur de vos préfixes, utilisez le signe '&' !", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF("# Pour donner toutes les permissions à un groupe, utilisez '*' !", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 53: WF("## Pour donner toutes les permissions à un groupe, utilisez '*' !", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF("", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 54: WF("", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF("Groups:", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 55: WF("Groups:", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" joueur:", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 56: WF(" joueur:", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Permissions:", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 57: WF(" Permissions:", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" - une.permission", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 58: WF(" - une.permission", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Inheritance: []", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 59: WF(" Inheritance: []", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Options:", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 60: WF(" Options:", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Prefix: '[Joueur]'", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 61: WF(" Prefix: '[Joueur]'", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Enabled: true", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 62: WF(" Enabled: true", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" vip:", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 63: WF(" vip:", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Permissions: []", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 64: WF(" Permissions: []", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Inheritance:", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 65: WF(" Inheritance:", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" - joueur", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 66: WF(" - joueur", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Options:", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 67: WF(" Options:", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Prefix: '[VIP]'", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 68: WF(" Prefix: '[VIP]'", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF(" Enabled: true", "plugins/Z-Permissions/Groups.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 69: WF(" Enabled: true", {@Groups.File})')
[17:43:21] [ERROR] [skript] 'WF("Users:", "plugins/Z-Permissions/Users.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 74: WF("Users:", {@Users.File})')
[17:43:21] [ERROR] [skript] 'WF(" PsYZiiK:", "plugins/Z-Permissions/Users.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 75: WF(" PsYZiiK:", {@Users.File})')
[17:43:21] [ERROR] [skript] 'WF(" Permissions:", "plugins/Z-Permissions/Users.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 76: WF(" Permissions:", {@Users.File})')
[17:43:21] [ERROR] [skript] 'WF(" - vos.permissions", "plugins/Z-Permissions/Users.yml")' is not a boolean (yes/no) (Z-Permissions.sk, line 77: WF(" - vos.permissions", {@Users.File})')
[17:43:21] [ERROR] [skript] 'GetPlayerGroup(player: text) :: text' is not a text (Z-Permissions.sk, line 93: function GetPlayerGroup(player: text) :: text:')
[17:43:21] [ERROR] [skript] 'GetPlayerPrefix(player: text) :: text' is not a text (Z-Permissions.sk, line 98: function GetPlayerPrefix(player: text) :: text:')
[17:43:21] [ERROR] [skript] 'SetPlayerGroup(player: text, group: text)' is not a text (Z-Permissions.sk, line 103: function SetPlayerGroup(player: text, group: text):')
[17:43:21] [ERROR] [skript] 'ReloadGroups(optional: text="")' is not a text (Z-Permissions.sk, line 146: function ReloadGroups(optional: text=""):')
[17:43:21] [ERROR] [skript] 'AddPlayerPermission(player: text, permission: text)' is not a text (Z-Permissions.sk, line 150: function AddPlayerPermission(player: text, permission: text):')
[17:43:21] [ERROR] [skript] 'RemovePlayerPermission(player: text, permission: text)' is not a text (Z-Permissions.sk, line 155: function RemovePlayerPermission(player: text, permission: text):')
[17:43:21] [ERROR] [skript] 'AddGroupPermission(group: text, permission: text)' is not a text (Z-Permissions.sk, line 160: function AddGroupPermission(group: text, permission: text):')
[17:43:21] [ERROR] [skript] 'RemoveGroupPermission(group: text, permission: text)' is not a text (Z-Permissions.sk, line 165: function RemoveGroupPermission(group: text, permission: text):')
[17:43:21] [ERROR] [skript] 'SetGroupPrefix(group: text, prefix: text)' is not a text (Z-Permissions.sk, line 170: function SetGroupPrefix(group: text, prefix: text):')
[17:43:21] [ERROR] [skript] 'ExitenceOfGroup(group: text) :: boolean' is not a text (Z-Permissions.sk, line 175: function ExitenceOfGroup(group: text) :: boolean:')
[17:43:21] [ERROR] [skript] 'JsonMessage("%player%", "&8[&aZ-Perms&8] &bCommandes générales !", "&dClique-ici !", "run_command", "/zPerms Help 1")' is not a boolean (yes/no) (Z-Permissions.sk, line 192: JsonMessage("%player%", "{@Prefix} &bCommandes générales !", "&dClique-ici !", "run_command", "{@Commande.Principale} Help 1")')
[17:43:21] [ERROR] [skript] 'JsonMessage("%player%", "&8[&aZ-Perms&8] &bCommandes pour les joueurs !", "&dClique-ici !", "run_command", "/zPerms Help 2")' is not a boolean (yes/no) (Z-Permissions.sk, line 193: JsonMessage("%player%", "{@Prefix} &bCommandes pour les joueurs !", "&dClique-ici !", "run_command", "{@Commande.Principale} Help 2")')
[17:43:21] [ERROR] [skript] 'JsonMessage("%player%", "&8[&aZ-Perms&8] &bCommandes pour les groupes !", "&dClique-ici !", "run_command", "/zPerms Help 3")' is not a boolean (yes/no) (Z-Permissions.sk, line 194: JsonMessage("%player%", "{@Prefix} &bCommandes pour les groupes !", "&dClique-ici !", "run_command", "{@Commande.Principale} Help 3")')
[17:43:21] [ERROR] [skript] 'ReloadGroups()' is not a boolean (yes/no) (Z-Permissions.sk, line 233: ReloadGroups()')
[17:43:21] [ERROR] [skript] 'ExitenceOfGroup("%arg 4%")' is not an entity type (Z-Permissions.sk, line 260: if ExitenceOfGroup("%arg 4%") is false:')
[17:43:21] [ERROR] [skript] 'else' has to be placed just after an 'if' or 'else if' section (Z-Permissions.sk, line 262: else:')
[17:43:21] [ERROR] [skript] 'AddPlayerPermission("%arg 2%", "%arg 4%")' is not a boolean (yes/no) (Z-Permissions.sk, line 272: AddPlayerPermission("%arg 2%", "%arg 4%")')
[17:43:21] [ERROR] [skript] 'set {_msg} to Replace("&aLa permission &b{PERMISSION} &aa été ajoutée au joueur &d{PLAYER} &a!", "%arg 2%", "", "%arg 4%", "", "")' is not a boolean (yes/no) (Z-Permissions.sk, line 274: set {_msg} to Replace("{@Message.Add.Player.Permission}", "%arg 2%", "", "%arg 4%", "", "")')
[17:43:21] [ERROR] [skript] 'RemovePlayerPermission("%arg 2%", "%arg 4%")' is not a boolean (yes/no) (Z-Permissions.sk, line 281: RemovePlayerPermission("%arg 2%", "%arg 4%")')
[17:43:21] [ERROR] [skript] 'set {_msg} to Replace("&aLa permission &b{PERMISSION} &aa été retirée au joueur &d{PLAYER} &a!", "%arg 2%", "", "%arg 4%", "", "")' is not a boolean (yes/no) (Z-Permissions.sk, line 283: set {_msg} to Replace("{@Message.Remove.Player.Permission}", "%arg 2%", "", "%arg 4%", "", "")')
[17:43:21] [ERROR] [skript] 'AddGroupPermission("%arg 2%", "%arg 4%")' is not a boolean (yes/no) (Z-Permissions.sk, line 299: AddGroupPermission("%arg 2%", "%arg 4%")')
[17:43:21] [ERROR] [skript] 'set {_msg} to Replace("&aLa permission &b{PERMISSION} &aa été ajoutée au groupe &d{GROUP} &a!", "", "%arg 2%", "%arg 4%", "", "")' is not a boolean (yes/no) (Z-Permissions.sk, line 301: set {_msg} to Replace("{@Message.Add.Group.Permission}", "", "%arg 2%", "%arg 4%", "", "")')
[17:43:21] [ERROR] [skript] 'RemoveGroupPermission("%arg 2%", "%arg 4%")' is not a boolean (yes/no) (Z-Permissions.sk, line 308: RemoveGroupPermission("%arg 2%", "%arg 4%")')
[17:43:21] [ERROR] [skript] 'set {_msg} to Replace("&aLa permission &b{PERMISSION} &aa été retirée au groupe &d{GROUP} &a!", "", "%arg 2%", "%arg 4%", "", "")' is not a boolean (yes/no) (Z-Permissions.sk, line 310: set {_msg} to Replace("{@Message.Remove.Group.Permission}", "", "%arg 2%", "%arg 4%", "", "")')
[17:43:21] [ERROR] [skript] 'SetGroupPrefix("%arg 2%", "%arg 4%")' is not a boolean (yes/no) (Z-Permissions.sk, line 317: SetGroupPrefix("%arg 2%", "%arg 4%")')
[17:43:21] [ERROR] [skript] 'set {_msg} to Replace("&aLe préfixe du groupe &b{GROUP} &aa été changé en {PREFIX} &a!", "", "%arg 2%", "", "%arg 4%", "")' is not a boolean (yes/no) (Z-Permissions.sk, line 319: set {_msg} to Replace("{@Message.Group.Prefix.Changé}", "", "%arg 2%", "", "%arg 4%", "")')
[17:43:21] [ERROR] [skript] 'SetPlayerGroup("%player%", "joueur")' is not a boolean (yes/no) (Z-Permissions.sk, line 333: SetPlayerGroup("%player%", "{@Groupe.Par.Défaut}")')
[17:43:21] [ERROR] [skript] ': {MESSAGE}"' is not a valid item data (Z-Permissions.sk, line 340: set {_msg} to Replace("{@Format.Du.Chat}", "%player%", "", "", "%{zp.prefix.%uuid of player%}%", "%message%")')

×
×
  • 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.