Player balance not interpreted

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SlimeDog

Member
Mar 20, 2017
1
0
0
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>:
 
Status
Not open for further replies.