public static function FindPlayer($player, $id) { $res = Players::Find($id); if (!$res) { $player->Send(COLOR_PNOTFOUND, '[ERROR] Given player id not found or more than one result'); return null; } else { if (!$res->account || $res->account->Authed() == false) { $player->Send(COLOR_PNOTAUTHED, '[ERROR] Given player is not authed'); return null; } } return $res; }