Players' balances are stored in a database. I run an async task to get someone's balance. I can do PHP: player->sendMessage(result) to send a message to the sender including their balance on PHP: onCompletion() . I need the result to return when the task is done. How do I do that?
you're trying to return the result to another file? just call a function on the onCompletion method and put $this->getResult() as the first parameter
I did and it is giving me 0(zero), which is wrong because when I sent message to me in onCompletion() it gives me the right number from the database