So I have this skript but when I type the command, it says it doesn't exist. Please help me fix it.
command /rank [<text>]:
trigger:
if arg-1 is "diamond":
send "&x&2&1&d&8&2&4Teleporting in 5 seconds!" to player
wait 1 second
send "&x&7&d&e&f&3&bTeleporting in 4 seconds!" to player
wait 1 second
send "&x&c&f&f&5&0&aTeleporting in 3 seconds!" to player
wait 1 second
send "&x&f&f&8&e&0&0Teleporting in 2 seconds!" to player
wait 1 second
send "&x&e&5&1&7&1&7Teleporting in 1 second!" to player
wait 1 second
send "&x&2&1&d&8&2&4Teleporting..." to player
teleport player to location -72, 69, 171 in world "flat"
set {rankmine1} to location(-72, 69, 171, world "flat")
set yaw of {rankmine1} to -89.7
set pitch of {rankmine1} to -0.1
teleport player to {rankmine1}
else:
if arg-1 is "emerald":
send "&x&2&1&d&8&2&4Teleporting in 5 seconds!" to player
wait 1 second
send "&x&7&d&e&f&3&bTeleporting in 4 seconds!" to player
wait 1 second
send "&x&c&f&f&5&0&aTeleporting in 3 seconds!" to player
wait 1 second
send "&x&f&f&8&e&0&0Teleporting in 2 seconds!" to player
wait 1 second
send "&x&e&5&1&7&1&7Teleporting in 1 second!" to player
wait 1 second
send "&x&2&1&d&8&2&4Teleporting..." to player
teleport player to location -72, 69, 156 in world "flat"
set {rankmine2} to location(-72, 69, 156, world "flat")
set yaw of {rankmine2} to -89.7
set pitch of {rankmine2} to -0.1
teleport player to {rankmine2}
Should I try updating skript? The script has no error message but it just doesn't say the command exists.