The bypass is wrong ofc
You have to check first the levels etc then make the teleport
If player destroy the item you want..
If(player.destroyitembyitemid
Then teleport
And as i saw you want to remove the player from the party before the teleport
If(player.getparty() != null)
Player.leaveparty
Then teleport him