TK87 Posté(e) le 18 mars 2018 Posté(e) le 18 mars 2018 Bonjour, c'est mon deuxième post aujourd'hui sur mon même skript... Le skript en sois marche très bien désormais, mais je souhaite mettre des permission pour réaliser les commandes /kit Apprenti ou /kit Disciple. J'ai essayé de mettre : permission: kit.Apprenti ou permission: kit.Disciple a différents endroits sans aucun bon résultats... Voici donc mon skript: command /kit [<text>]: aliases: kits trigger: arg 1 isn't set: send " &c║ &6Liste des kits du serveur faction &bXXX &c║%nl% &7Apprenti &a(clique gauche)&f %nl% &bDisciple &a(clique gauche)&f %nl% &eXXX &a(clique gauche)&f %nl% &dXXX &a(clique gauche)&f %nl% &5XXX &a(clique gauche)&f %nl% &6XXX &a(clique gauche)" else: arg 1 is "apprenti" or "disciple" or "XXX" or "XXX" or "XXX" or "XXX": arg 1 is "apprenti": execute command "/give %player% minecraft:iron_helmet 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_chestplate 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_leggings 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_boots 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_sword 1 0 {ench:[{id:sharpness,lvl:1}]}" execute command "/give %player% minecraft:pickaxe 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% minecraft:iron_shovel 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% minecraft:iron_axe 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% 17 16" execute command "/give %player% 364 32" execute command "/give %player% 265 10" execute command "/give %player% 322 2" send " &aVous avez reçu le kit &7Apprenti" arg 1 is "disciple": execute command "/give %player% minecraft:iron_helmet 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_chestplate 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_leggings 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_boots 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_sword 1 0 {ench:[{id:sharpness,lvl:2}]}" execute command "/give %player% minecraft:pickaxe 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% minecraft:iron_shovel 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% minecraft:iron_axe 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% 364 32" execute command "/give %player% 322 4" send " &aVous avez reçu le kit &bDisciple" Pouvez vous donc m'indiquer ou je dois mettre ces permission ? Merci :) Minecraftement TK87
0 Vengelis_ Posté(e) le 18 mars 2018 Posté(e) le 18 mars 2018 Remet le « permission: etc » car cela marche mais si tu es op c’est normal que ça ne te bloque pas la commande
0 TK87 Posté(e) le 18 mars 2018 Auteur Posté(e) le 18 mars 2018 Remet le « permission: etc » car cela marche mais si tu es op c’est normal que ça ne te bloque pas la commande Non ce n'est pas ça le soucis, c'est juste que ça me met des erreurs, peu importe ou je met les permissions. Est-ce que vous pouvez donc m'indiquer précisément ou mettre ces permissions ? Merci d'avance
0 Vengelis_ Posté(e) le 18 mars 2018 Posté(e) le 18 mars 2018 ou sinon tu fais if player has permission "permission":
0 TK87 Posté(e) le 18 mars 2018 Auteur Posté(e) le 18 mars 2018 ou sinon tu fais if player has permission "permission": J'ai fais ce que vous m'avez proposez, le skript arrive a ce reload mais en revanche les permissions ne sont pas prises en comptes même si le joueur est déop. Et au cas ou, j"ai bien mis la permission dans les permissions de mes grades... je vous renvoie le code avec l'endroit où j'ai mis les permission pour plus de facilité: command /kit [<text>]: aliases: kits trigger: arg 1 isn't set: send " &c║ &6Liste des kits du serveur faction &bxxx &c║%nl% &7Apprenti &a(clique gauche)&f %nl% &bDisciple &a(clique gauche)&f %nl% &exxx &a(clique gauche)&f %nl% &dxxx &a(clique gauche)&f %nl% &5xxx &a(clique gauche)&f %nl% &6xxx &a(clique gauche)" else: arg 1 is "apprenti" or "disciple" or "xxx" or "xxx" or "xxx" or "xxx": arg 1 is "apprenti": if player has permission "kit.apprenti": execute command "/give %player% minecraft:iron_helmet 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_chestplate 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_leggings 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_boots 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_sword 1 0 {ench:[{id:sharpness,lvl:1}]}" execute command "/give %player% minecraft:pickaxe 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% minecraft:iron_shovel 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% minecraft:iron_axe 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% 17 16" execute command "/give %player% 364 32" execute command "/give %player% 265 10" execute command "/give %player% 322 2" send " &aVous avez reçu le kit &7Apprenti" arg 1 is "disciple": if player has permission "kit.disciple": execute command "/give %player% minecraft:iron_helmet 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_chestplate 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_leggings 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_boots 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_sword 1 0 {ench:[{id:sharpness,lvl:2}]}" execute command "/give %player% minecraft:pickaxe 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% minecraft:iron_shovel 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% minecraft:iron_axe 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% 364 32" execute command "/give %player% 322 4" send " &aVous avez reçu le kit &bDisciple"
0 ManiaPivipi Posté(e) le 19 mars 2018 Posté(e) le 19 mars 2018 Vous devez mettre une tabulation après if player has permission "permission": Votre code devrai être command /kit [<text>]: aliases: kits trigger: arg 1 isn't set: send " &c║ &6Liste des kits du serveur faction &bxxx &c║%nl% &7Apprenti &a(clique gauche)&f %nl% &bDisciple &a(clique gauche)&f %nl% &exxx &a(clique gauche)&f %nl% &dxxx &a(clique gauche)&f %nl% &5xxx &a(clique gauche)&f %nl% &6xxx &a(clique gauche)" else: arg 1 is "apprenti" or "disciple" or "xxx" or "xxx" or "xxx" or "xxx": arg 1 is "apprenti": if player has permission "kit.apprenti": execute command "/give %player% minecraft:iron_helmet 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_chestplate 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_leggings 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_boots 1 0 {ench:[{id:protection,lvl:1}]}" execute command "/give %player% minecraft:iron_sword 1 0 {ench:[{id:sharpness,lvl:1}]}" execute command "/give %player% minecraft:pickaxe 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% minecraft:iron_shovel 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% minecraft:iron_axe 1 0 {ench:[{id:32,lvl:1}]}" execute command "/give %player% 17 16" execute command "/give %player% 364 32" execute command "/give %player% 265 10" execute command "/give %player% 322 2" send " &aVous avez reçu le kit &7Apprenti" arg 1 is "disciple": if player has permission "kit.disciple": execute command "/give %player% minecraft:iron_helmet 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_chestplate 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_leggings 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_boots 1 0 {ench:[{id:protection,lvl:2}]}" execute command "/give %player% minecraft:iron_sword 1 0 {ench:[{id:sharpness,lvl:2}]}" execute command "/give %player% minecraft:pickaxe 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% minecraft:iron_shovel 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% minecraft:iron_axe 1 0 {ench:[{id:32,lvl:2}]}" execute command "/give %player% 364 32" execute command "/give %player% 322 4" send " &aVous avez reçu le kit &bDisciple"
0 lijo62 Posté(e) le 19 mars 2018 Posté(e) le 19 mars 2018 @TK87 si tu veux un conseil pour les tabulations/indentations, quand tu vois un ":" toutes les lignes suivantes dépendantes de la conditions doivent être indentée ;-)
0 TK87 Posté(e) le 19 mars 2018 Auteur Posté(e) le 19 mars 2018 Super merci beaucoup ! Très bon forum ^^ 1
Question
TK87
Bonjour, c'est mon deuxième post aujourd'hui sur mon même skript...
Le skript en sois marche très bien désormais, mais je souhaite mettre des permission pour réaliser les commandes /kit Apprenti ou /kit Disciple.
J'ai essayé de mettre : permission: kit.Apprenti ou permission: kit.Disciple a différents endroits sans aucun bon résultats...
Voici donc mon skript:
Pouvez vous donc m'indiquer ou je dois mettre ces permission ?
Merci :)
Minecraftement
TK87
7 réponses à cette question
Messages recommandés