We all know that on a task, you can use $this->getOwner()->happyguyname to get $this->happyguyname, but how would I get a value I set in the task return to the owner file? I have a $this->mostplayers in my Task.php, but I wanna get that in my Main.php. Thanks!
You should make a function in your main class and call that function from the task on completion. edit: or alternatively, make a public global variable in the main class and set that with the task value from your task.
Global variable? Probably doesn't really work well from /reload. P.S. I thought you're never on PocketMine Forums.
How would I solve it? My string changes every time a task runs so IDK how to return the data to the Main.php. Also, @KnownUnown is a inactive member for a long time. Hi!