I have an AsyncTask and I want to send messages to the player that ran the command that started the AsyncTask. I have tried everything I can think of and for some reason I can't send a message to the player that ran the command to start the AsyncTask. How could I send a message to the player that started the AsyncTask (through a command)?
You CANNOT send message to player, unless you have a way that dosent involve storing Player/CommandSender instance You should probably read a thing or two about threading, as when you pass something into thread AFAIK it clones it then using the same object If you really want to, it would be possible using notify main thread i think? but that would need more knowledge of async to be accomplished