Hi everyone
Well, I was creating a class script, but, as what i wrote not it was reading for minecraft, and send me this message when i execute the command
Code
Well, I was creating a class script, but, as what i wrote not it was reading for minecraft, and send me this message when i execute the command
Code
code_language.skript:
on command "/kit":
cancel event
send "&8[&a&lHaxel&3&lClases&8] &7Comando inválido, el uso correcto es /clase"
options:
respawnkit prefix: &8[&a&lHaxel&3&lClases&8] &7
respawnkit color prefix: &9&lCLASE &a&lCO&c&lLOR
respawnkit tienda1 prefix: &e&lCLASE &6&lTIENDA1
respawnkit tienda2 prefix: &e&lC&6&lL&e&lA&6&lS&e&lE &6&lT&e&lI&6&lE&e&lN&6&lD&e&lA&6&l2
command /clase [<text>]:
trigger:
arg 1 is not set:
if player does not has permission "haxel.kit.color", "haxel.kit.tienda1", "haxel.kit.tienda2":
send "{@respawnkit prefix}Clases disponibles: Nuevo"
stop
if player has permission "haxel.kit.color":
send "{@respawnkit prefix}Clases disponibles: Nuevo, Color"
stop
if player has permission "haxel.kit.tienda1" and "haxel.kit.color":
send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda1"
stop
if player has permission "haxel.kit.tienda2", "haxel.kit.tienda1" and "haxel.kit.color":
send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda1, Tienda2"
stop
if player has permission "haxel.kit.tienda2" and "haxel.kit.color":
send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda2"
stop
arg 1 is "color":
if player has permission "haxel.kit.color":
send "{@respawnkit prefix}Recogiste tu clase correctamente."
add 1 diamond helmet of protection 1, unbreaking 1 named "{@respawnkit color prefix}" to player
add 1 iron chestplate of unbreaking 1 named "{@respawnkit color prefix}" to player
add 1 chain leggings of unbreaking 2, protection 1 named "{@respawnkit color prefix}" to player
add 1 chain boots of protection 3, unbreaking 3 named "{@respawnkit color prefix}" to player
add 1 stone sword of sharpness 2, unbreaking 10 named "{@respawnkit color prefix}" to player
add 6 322:0 of unbreaking 1000 named "{@respawnkit color prefix}" to player
add 64 320 to player
wait 40 minutes
else:
send "{@respawnkit prefix}No tienes permisos suficientes"
stop
arg 1 is "tienda1":
if player has permission "haxel.kit.tienda1":
send "{@respawnkit prefix}Recogiste tu clase correctamente."
add 1 chain helmet of protection 3, unbreaking 1 named "{@respawnkit tienda1 prefix}" to player
add 1 chain chestplate of protection 2 named "{@respawnkit tienda1 prefix}" to player
add 1 chain leggings of protection 2, unbreaking 1 named "{@respawnkit tienda1 prefix}" to player
add 1 gold boots of protection 10, depth strider 3, unbreaking 50 named "{@respawnkit tienda1 prefix}" to player
add 1 iron axe of fireaspect 1, unbreaking 3 named "{@respawnkit tienda1 prefix}" to player
add 2 322:0 of unbreaking 1000 named "{@respawnkit tienda1 prefix}" to player
add 64 320 to player
wait 10 minutes
else:
send "{@respawnkit prefix}No tienes permisos suficientes"
stop
arg 1 is "tienda2":
if player has permission "haxel.kit.tienda2":
send "{@respawnkit prefix}Recogiste tu clase correctamente."
add 1 chain helmet of protection 3, unbreaking 1 named "{@respawnkit tienda2 prefix}" to player
add 1 chain chestplate of protection 2 named "{@respawnkit tienda2 prefix}" to player
add 1 iron leggings of protection 2, unbreaking 1 named "{@respawnkit tienda2 prefix}" to player
add 1 gold boots of protection 20, depth strider 5, unbreaking 100 named "{@respawnkit tienda2 prefix}" to player
add 1 wooden axe of fireaspect 5, sharpness 3, unbreaking 3 named "{@respawnkit tienda2 prefix}" to player
add 2 322:0 of unbreaking 1000 named "{@respawnkit tienda2 prefix}" to player
add 64 320 to player
wait 10 minutes
else:
send "{@respawnkit prefix}No tienes permisos suficientes"
stop
on respawn:
add 1 leather helmet to player
add 1 leather chestplate to player
add 1 leather leggings to player
add 1 chain boots to player
add 1 stone sword to player
add 64 320 to player