code_language.skript:
command /test-access <text=none> <text=none>:
permission: blackdog.op
trigger:
set {_DEBUG} to false
set {_DEBUG} to true
set {_player} to arg 1
if {_player} is "none":
send message "usage: test-access player restricted-world"
exit
if {_DEBUG} is true:
send message "You set player to %{_player}%"
set {_world} to arg 2
if {_world} is "none":
send message "usage: grant-access player restricted-world"
exit
if {_DEBUG} is true:
send message "You set world to %{_world}%"
set {_BALANCE} to money of {_player}
send message "Balance is %{_BALANCE}%"
Compiles without error, but returns "Balance is <none>". What am I missing?
[doublepost=1514229751,1514221924][/doublepost]OK, this works:
code_language.skript:
command /test-access <player> <text=none>: