And when I transfer a player to a different server I check the status of it. But how can I get the status in there? PHP: if ($status == "online") {//transfer}
passed in PHP: public function onComplete($data,$status){$player =$this->getPlayerByName($data['player']);if (!$player instanceof Player)return;if $status == "online"$this->transfer($player,$data['server_ip']);}