Okay so I have this async task Here's the code: PHP: class Test extends AsyncTask { public function __construct(Main $plugin){ parent::__construct($plugin); } public function onRun(){ $d = file_get_contents("/home/badandboujee/test.json"); $badAndBou = json_decode($d, true); $this->setResult($badAndBou['Data1']['Data5']); } public function onCompletion(Server $server){ $server->getLogger()->info($this->getResult()); // Seems to echo the data. }} But this message get log! WHY?? PHP: xx stored local complex data but did not remove them after completion xx is the fill class path etc...
weird, you do not seem to use any local complexes? are you sure you don't use them somewhere? setResult shouldn't be a local complex so i am confused... @SOFe might have the solution, he wrote that local complex stuff. Never got to work with it yet.
Because this is an AsyncTask not a PluginTask, and you shouldn't call parent::__construct() with any values unless you're gonna use them.
Added to bit.ly/PmDev https://github.com/SOF3/forums-comm...lex-data-did-not-remove-them-after-completion