It's been a while since I skripted and I've run into a problem I never had before. I'm trying to make a simple command where I can set locations to "deploy" a player to on a map, and the have them randomly teleported to one of ten of the locations, but for some reason I can't get either command to properly work, or even show up in the list of commands; being that whenever I type them they just show up red and say that no command exists under that name. Any Ideas?
Code:
command setdeployment <number>:
permission: owner.setloc
trigger:
send "&aSuccessfully set location %arg-1%!"
set {deployloc::%arg-1%} to location of player
command deploy:
trigger:
set {_location} to a random integer between 1 and 10
teleport player to {deployloc::%_location%}