j'ai essais sa ne marche toujours pas tien mon skript
command /key <text>:
permission: lol.admin
trigger:
if arg 1 is "mystere":
send "&6[Key&6] &9Tu a resu &41 &5Cle Mystére"
give player 341 named "&5Cle Mystére"
if arg 1 is "journaliere":
send "&6[Key&6] &9Tu a resu &41 &6Cle Journaliére"
give player 341 named "&6Cle journaliére"
if arg 1 is "Admin":
send "&6[&4Admin&6] &cTu a resu &4&l1 &c&lCle &4&lAdministrateur"
give player 341 named "&4&lCle &c&lAdministrateur"
if arg 1 is "all":
send "&6[Key&6] &2Tu a resu &41 &2Cle de chaque"
give player 341 named "&4&lCle &c&lAdministrateur"
give player 341 named "&6Cle journaliére"
give player 341 named "&5Cle Mystére"
give player 341 named "&7Cle &6Xe&2no"
if arg 1 is "xeno":
send "&6[&2Key&6] &2Tu a resu &61 &7Cle &6Xe&2no"
give player 341 named "&7Cle &6Xe&2no"
on right click with 341 on 41:
if name of tool is "&6Cle journaliére":
execute console command "kit elite %player%" or "eco give %player% 1000" or "give %player% 264 5" or "give %player% 384 10" or "kit tytan %player%"
send "&6[&2Box&6] &6Bienjoue tu a ouvert &51 &6Box journaliére"
execute console command "clear %player% 341 1 {&6Cle journaliére}"
on right click with 341 on 22:
if name of tool is "&5Cle Mystére":
execute console command "kits key1 %player%" or "kits key2 %player%" or "kits legendaire %player%" or "eco give %player% 5000" or "eco give %player% 10000" or "give %player% 264 64" or "give %player% 264 128" or "kits supreme %player%"
send "&6[&2Box&6] &5Tu a ouvert &41 &5Cle mystére"
on right click with 341 on 152:
if name of tool is "&4&lCle &c&lAdministrateur":
send "&6[&c&lAdmin&4&lBox&6] &4&nTu a Ouvert &4&l&n1 &c&l&nCle &9&l&nAdministrateur"